24件ヒット
[1-24件を表示]
(0.060秒)
別のキーワード
ライブラリ
- ビルトイン (24)
クラス
-
RubyVM
:: InstructionSequence (12) - TracePoint (12)
検索結果
-
RubyVM
:: InstructionSequence # inspect -> String (44142.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#labe......l,
RubyVM::InstructionSequence#path... -
TracePoint
# inspect -> String (18142.0) -
self の状態を人間に読みやすい文字列にして返します。
...
self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}...