77件ヒット
[1-77件を表示]
(0.148秒)
別のキーワード
ライブラリ
- ビルトイン (22)
- pathname (11)
-
rdoc
/ top _ level (22) - uri (22)
クラス
- Pathname (11)
-
RDoc
:: TopLevel (22) -
RubyVM
:: InstructionSequence (11) -
Thread
:: Backtrace :: Location (11) -
URI
:: Generic (22)
キーワード
- absolute? (22)
-
absolute
_ path (22) -
file
_ absolute _ name (11) -
file
_ absolute _ name= (11)
検索結果
先頭5件
-
URI
:: Generic # absolute -> bool (24227.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (18314.0) -
self が表す命令シーケンスの絶対パスを返します。
...compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compil......e_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
Thread
:: Backtrace :: Location # absolute _ path -> String (18308.0) -
self が表すフレームの絶対パスを返します。
...][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::Location#path... -
Pathname
# absolute? -> bool (15214.0) -
self が絶対パス指定であれば真を返します。
...self が絶対パス指定であれば真を返します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/example.rb")
pathname.absolute? # => true
pathname = Pathname("../")
pathname.absolute? # => false
//}... -
RDoc
:: TopLevel # file _ absolute _ name -> String (15202.0) -
自身が管理するファイルに関する絶対パスを文字列で返します。
自身が管理するファイルに関する絶対パスを文字列で返します。 -
RDoc
:: TopLevel # file _ absolute _ name=(val) (15202.0) -
自身が管理するファイルに関する絶対パスを文字列で設定します。
...自身が管理するファイルに関する絶対パスを文字列で設定します。
@param val パスを文字列で指定します。... -
URI
:: Generic # absolute? -> bool (12227.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...