27件ヒット
[1-27件を表示]
(0.072秒)
別のキーワード
ライブラリ
- ビルトイン (27)
クラス
- Exception (12)
- Module (3)
-
RubyVM
:: InstructionSequence (12)
検索結果
先頭3件
-
RubyVM
:: InstructionSequence # inspect -> String (47136.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... -
Exception
# inspect -> String (21136.0) -
self のクラス名と message を文字列にして返します。
...
self のクラス名と message を文字列にして返します。
//emlist[例][ruby]{
begin
raise "exception"
rescue
p $!.inspect # => "#<RuntimeError: exception>"
end
//}... -
Module
# const _ added(name) -> () (6125.0) -
定数 name が追加された時にインタプリタがこのメソッドを呼び出します。
...定数 name が追加された時にインタプリタがこのメソッドを呼び出します。
//emlist[][ruby]{
module Chatty
def self.const_added(const_name)
super
puts "Added #{const_name.inspect}"
end
FOO = 1
end
# => Added :FOO
//}...