要約
irb のメインモジュールです。
目次
- 特異メソッド
- 追加されるメソッド
特異メソッド
CurrentContext -> IRB::Context[permalink][rdoc][edit]-
現在の irb に関する IRB::Context を返します。
conf -> Hash[permalink][rdoc][edit]-
irb の設定をハッシュで返します。
irb_abort(irb, exception = Abort)[permalink][rdoc][edit]-
実行中の処理を中断します。必ず例外が発生するため、何も返しません。
- [PARAM]
irb: - 現在の IRB::Irb オブジェクトを指定します。
- [PARAM]
exception: - 発生させる例外を指定します。指定しなかった場合は IRB::Abort が発生します。
- [EXCEPTION]
exception: - 引数 exception で指定した例外が発生します。
ユーザが直接使用するものではありません。
- [PARAM]
irb_at_exit -> ()[permalink][rdoc][edit]-
at_exit で登録された処理を実行します。
ユーザが直接使用するものではありません。
irb_exit(irb, ret) -> object[permalink][rdoc][edit]-
irb を終了します。ret で指定したオブジェクトを返します。
- [PARAM]
irb: - 現在の IRB::Irb オブジェクトを指定します。
- [PARAM]
ret: - 戻り値を指定します。
ユーザが直接使用するものではありません。
- [PARAM]
start(ap_path = nil) -> ()[permalink][rdoc][edit]-
IRB を初期化して、トップレベルの irb を開始します。
- [PARAM]
ap_path: - irb コマンドのパスを指定します。
- [PARAM]
version -> String[permalink][rdoc][edit]-
IRB のバージョンを文字列で返します。
~/.irbrc などの設定ファイル内で IRB.conf[:VERSION] を設定していた場合は任意のバージョンを返すように設定できます。
追加されるメソッド
Inspector(inspect, init = nil) -> IRB::InspectorRuby 1.9.3 から[permalink][rdoc][edit] [added by irb/inspector]-
IRB::Inspector オブジェクトを生成します。
- [PARAM]
inspect: - 実行結果の出力のための手続きオブジェクトを指定します。
- [PARAM]
init: - inspect_mode の初期化のための手続きオブジェクトを指定します。あらかじめ require が必要な場合などに、proc { require "foo" } といった指定を行います。
- [PARAM]
STDIN_FILE_NAME -> "(line)"[permalink][rdoc][edit] [added by irb/input-method]-
標準入力を使用する際のファイル名を文字列で返します。
print_usage -> ()[permalink][rdoc][edit] [added by irb/help]-
irb コマンドのヘルプを表示します。