るりまサーチ

最速Rubyリファレンスマニュアル検索!
1438件ヒット [1-100件を表示] (0.114秒)
トップページ > クエリ:-[x] > クエリ:tr[x] > クエリ:@[x] > クエリ:path[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

モジュール

オブジェクト

検索結果

<< 1 2 3 ... > >>

RubyVM::InstructionSequence#path -> String (21325.0)

self が表す命令シーケンスの相対パスを返します。

...nstructionSequence.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::Instruc...
...tionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"

@
see RubyVM::InstructionSequence#absolute_path...

Thread::Backtrace::Location#path -> String (21319.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 (21319.0)

イベントが発生したファイルのパスを返します。

...トが発生したファイルのパスを返します。

@
raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end
tr
ace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
tr
ace.enable
foo 1
//}...

File.path(filename) -> String (18389.0)

指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。

...は、to_path メソッドを呼びます。

@
param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。

//emlist[例][ruby]{
require 'pathname'

class MyPath
def initialize(path)
@
path = path
end
def to_path
File...
....absolute_path(@path)
end
end

File.path("/dev/null") # => "/dev/null"
File.path(Pathname("/tmp")) # => "/tmp"
File.path(MyPath.new(".")) # => "/Users/user/projects/txt"
//}...

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

IO#path に委譲します。

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


@
see IO#path...

File#path -> String (18326.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?)
//}...

WIN32OLE_TYPELIB#path -> String (18319.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 (18308.0)

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

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

@
param value パス名を文字列で指定します。...

Gem::Security::Policy.trusted_cert_path(cert, options) -> String (12413.0)

与えられた証明書へのパスを返します。

...与えられた証明書へのパスを返します。

@
param cert 証明書オブジェクトを指定します。

@
param options その他のオプションを指定します。...

絞り込み条件を変える

<< 1 2 3 ... > >>