652件ヒット
[1-100件を表示]
(0.115秒)
ライブラリ
- ビルトイン (136)
- csv (12)
-
json
/ add / exception (12) - mkmf (48)
-
net
/ http (36) - openssl (12)
- optparse (12)
- pathname (120)
- rake (36)
-
rexml
/ document (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (12)
- uri (24)
- win32ole (12)
クラス
- Addrinfo (12)
- CSV (12)
- Exception (24)
- File (16)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: GemPathSearcher (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (12) -
Net
:: HTTP (12) -
Net
:: HTTPResponse (24) -
OpenSSL
:: SSL :: SSLContext (12) - OptionParser (12)
- Pathname (120)
- Proc (12)
-
REXML
:: Element (12) -
Rake
:: FileList (12) -
RubyVM
:: InstructionSequence (36) - Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - String (24)
-
Thread
:: Backtrace :: Location (48) - TracePoint (12)
-
URI
:: Generic (24) -
WEBrick
:: Cookie (24) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Kernel (48)
キーワード
-
absolute
_ path (24) - binread (12)
- binwrite (12)
-
ca
_ path (24) -
dir
_ config (12) - extname (12)
-
fetch
_ path (12) -
find
_ executable (12) - ftype (12)
-
get
_ file _ uri _ path (12) -
get
_ path (12) - inspect (24)
- libpathflag (12)
-
link
_ command (12) -
matching
_ files (12) -
open
_ uri _ or _ path (12) - path= (12)
- pathmap (12)
-
pathmap
_ explode (12) -
pathmap
_ replace (12) -
program
_ name (12) - read (12)
-
read
_ body (24) - readlines (12)
- readlink (18)
-
require
_ path (12) - select (12)
-
set
_ backtrace (12) -
source
_ location (12) -
spec
_ path (12) - split (18)
- sub (24)
- text (12)
-
to
_ json (12) -
to
_ path (20) -
to
_ s (12) -
try
_ file (12) -
unix
_ path (12) - write (12)
検索結果
先頭5件
-
URI
:: Generic # path -> String | nil (18255.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'... -
CSV
# path -> String (18231.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
File
# path -> String (18229.0) -
オープン時に使用したパスを文字列で返します。
...る場合です。
@raise IOError TMPFILE File::Constants::TMPFILEオプション付きで作成されている場合に発生します。
//emlist[例][ruby]{
File.open("testfile") {|f| f.path } #=> "testfile"
File.open("/tmp/../tmp/xxx", "w") {|f| f.path } #=> "....../tmp/../tmp/xxx"
File.open("/tmp", File::RDWR | File::TMPFILE){|f| f.path } # IOError: File is unnamed (TMPFILE?)
//}... -
RubyVM
:: InstructionSequence # path -> String (18227.0) -
self が表す命令シーケンスの相対パスを返します。
...ompiled>@<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 Ruby......VM::InstructionSequence#absolute_path... -
Thread
:: Backtrace :: Location # path -> String (18221.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... -
TracePoint
# path -> String (18221.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
//}... -
WIN32OLE
_ TYPELIB # path -> String (18221.0) -
TypeLibのパス名を取得します。
...TypeLibのパス名を取得します。
@return TypeLibのパス名を文字列で返します。この値はレジストリの登録値を
そのまま利用するため、Rubyのパス名形式(ディレクトリ区切りは
「/」)ではなく、Windowsのパス名形式(......ディレクトリ区切りは「\」)
です。
@raise WIN32OLERuntimeError TypeLibの属性が読み取れない場合に通知します。
tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tlib.path # => 'C:\...\EXCEL.EXE'
TypeLibは拡張子TLB(まれに... -
WEBrick
:: Cookie # path -> String (18210.0) -
パス名を文字列で表すアクセサです。
...パス名を文字列で表すアクセサです。
@param value パス名を文字列で指定します。... -
String
# pathmap _ replace(patterns) { . . . } -> String (15208.0) -
与えられたパスを前もって置き換えます。
...与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。...