24件ヒット
[1-24件を表示]
(0.103秒)
検索結果
先頭2件
-
IRB
. Inspector(inspect , init = nil) -> IRB :: Inspector (18225.0) -
IRB::Inspector オブジェクトを生成します。
...IRB::Inspector オブジェクトを生成します。
@param inspect 実行結果の出力のための手続きオブジェクトを指定します。
@param init inspect_mode の初期化のための手続きオブジェクトを指定します。
あらかじめ require が必要......な場合などに、proc { require "foo" }
といった指定を行います。... -
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (9120.0) -
新しい実行結果の出力方式を定義します。
...などに、proc { require "foo" } といった指定を行います。
ブロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。
例.
# .irbrc
IRB::Inspector.def_inspector([:test]){ |v| v.to_s...