702件ヒット
[1-100件を表示]
(0.180秒)
ライブラリ
- ビルトイン (156)
-
cgi
/ core (24) - csv (12)
-
irb
/ context (12) -
json
/ add / exception (12) - mkmf (36)
-
net
/ http (24) - openssl (12)
- pathname (24)
- rake (48)
-
rake
/ packagetask (12) -
rexml
/ document (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (48) - shell (12)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (12)
- uri (24)
-
webrick
/ httprequest (24) - win32ole (12)
クラス
-
ARGF
. class (24) -
CGI
:: Cookie (12) - CSV (12)
- Exception (24)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: GemPathSearcher (24) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (48) -
IRB
:: Context (12) -
Net
:: HTTP (12) -
Net
:: HTTPGenericRequest (12) -
OpenSSL
:: SSL :: SSLContext (12) - Pathname (24)
- Proc (12)
-
RDoc
:: Options (12) -
REXML
:: Element (12) -
Rake
:: Application (12) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) -
RubyVM
:: InstructionSequence (36) - Shell (12)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - String (24)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
- UNIXSocket (12)
-
URI
:: Generic (24) -
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPRequest (24) -
WIN32OLE
_ TYPELIB (12)
モジュール
-
CGI
:: QueryExtension (24) - Kernel (36)
キーワード
-
absolute
_ path (24) -
ca
_ path (24) -
dir
_ config (12) -
fetch
_ path (12) - filename (12)
-
find
_ executable (12) -
full
_ gem _ path (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) - inspect (36)
-
installation
_ path (12) -
irb
_ path (12) -
lib
_ dirs _ for (12) -
link
_ command (12) -
matching
_ files (12) -
open
_ uri _ or _ path (12) -
original
_ dir (12) -
package
_ dir _ path (12) - path= (12)
-
path
_ info (24) -
path
_ translated (12) - pathmap (24)
-
pathmap
_ replace (12) - readlink (18)
-
require
_ path (12) -
require
_ paths (12) - select (12)
-
set
_ backtrace (12) -
source
_ location (12) -
spec
_ path (12) - split (18)
-
static
_ path (12) - sub (24)
-
to
_ json (12) -
to
_ s (12) -
try
_ file (12) - xpath (12)
検索結果
先頭5件
-
String
# pathmap _ replace(patterns) { . . . } -> String (21302.0) -
与えられたパスを前もって置き換えます。
与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。 -
URI
:: Generic # path -> String | nil (21249.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
...自身の path を文字列で返します。設定されていない場合は nil を返します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> n......il
p URI('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
Thread
:: Backtrace :: Location # path -> String (21227.0) -
self が表すフレームのファイル名を返します。
...self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path... -
CSV
# path -> String (21225.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
Net
:: HTTPGenericRequest # path -> String (21225.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
RubyVM
:: InstructionSequence # path -> String (21221.0) -
self が表す命令シーケンスの相対パスを返します。
...していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用し......た場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
TracePoint
# path -> String (21215.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
UNIXSocket
# path -> String (21209.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
WEBrick
:: Cookie # path -> String (21204.0) -
パス名を文字列で表すアクセサです。
パス名を文字列で表すアクセサです。
@param value パス名を文字列で指定します。