24件ヒット
[1-24件を表示]
(0.112秒)
別のキーワード
ライブラリ
- ビルトイン (24)
クラス
検索結果
-
Thread
:: Backtrace :: Location # absolute _ path -> String (18114.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
/... -
RubyVM
:: InstructionSequence # to _ a -> Array (13.0) -
self の情報を 14 要素の配列にして返します。
..."<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensure、:e...