るりまサーチ

最速Rubyリファレンスマニュアル検索!
3072件ヒット [1-100件を表示] (0.105秒)

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. csv path

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

URI::Generic#path -> String | nil (18154.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 (18130.0)

IO#path に委譲します。

...IO#path に委譲します。


@
see IO#path...

File#path -> String (18127.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 (18126.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 (18120.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 (18120.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 (18120.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(まれに...

RSS::Rss::Channel::Cloud#path (18119.0)

@todo

...@todo...

WEBrick::Cookie#path -> String (18109.0)

パス名を文字列で表すアクセサです。

...パス名を文字列で表すアクセサです。

@
param value パス名を文字列で指定します。...
<< 1 2 3 ... > >>