るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

キーワード

検索結果

<< 1 2 > >>

URI::Generic#absolute -> bool (24115.0)

自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

例:
r
equire 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...

RubyVM::InstructionSequence#absolute_path -> String | nil (12214.0)

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

...irb で実行した場合

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
puts "hello, wor...
...ld"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"

@see RubyVM::InstructionSequence#path...

URI::Generic#route_from(src) -> URI::Generic (12207.0)

与えられた URI を表す src からの相対パスを返します。

...URI を表す src からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
r
equire 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL...
...:foo/bar.html>...

URI::Generic#absolute? -> bool (12115.0)

自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

例:
r
equire 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...

Thread::Backtrace::Location#absolute_path -> String (9208.0)

self が表すフレームの絶対パスを返します。

...emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end

# => /path/to/foo.rb
# /path/to/foo.rb
# /path/to/foo.rb
//}

@see Thread::Backtrace::Locati...

絞り込み条件を変える

RDoc::TopLevel#file_absolute_name -> String (9202.0)

自身が管理するファイルに関する絶対パスを文字列で返します。

自身が管理するファイルに関する絶対パスを文字列で返します。

RDoc::TopLevel#file_absolute_name=(val) (9102.0)

自身が管理するファイルに関する絶対パスを文字列で設定します。

...自身が管理するファイルに関する絶対パスを文字列で設定します。

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

Resolv::DNS::Name#absolute? -> bool (9102.0)

絶対パス形式であるかどうかを返します。

絶対パス形式であるかどうかを返します。

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

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

...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, wor...
...ld"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"

@see RubyVM::InstructionSequence#absolute_path...
<< 1 2 > >>