るりまサーチ

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

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

キーワード

検索結果

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 の絶対値を返します。