34件ヒット
[1-34件を表示]
(0.113秒)
クラス
- Bignum (6)
- Fixnum (6)
-
RubyVM
:: InstructionSequence (11) -
Thread
:: Backtrace :: Location (11)
キーワード
-
absolute
_ path (22) - magnitude (6)
検索結果
先頭5件
-
Bignum
# abs -> Fixnum | Bignum (26206.0) -
self の絶対値を返します。
self の絶対値を返します。 -
Fixnum
# abs -> Fixnum | Bignum (26206.0) -
self の絶対値を返します。
self の絶対値を返します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (14204.0) -
self が表す命令シーケンスの絶対パスを返します。
...piled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/meth... -
Thread
:: Backtrace :: Location # absolute _ path -> String (14115.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... -
Bignum
# magnitude -> Fixnum | Bignum (11106.0) -
self の絶対値を返します。
self の絶対値を返します。 -
Fixnum
# magnitude -> Fixnum | Bignum (11106.0) -
self の絶対値を返します。
self の絶対値を返します。