22件ヒット
[1-22件を表示]
(0.110秒)
別のキーワード
検索結果
-
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (21101.0) -
現在の irb に関する IRB::Context を返します。
現在の irb に関する IRB::Context を返します。 -
irb (18.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1> end
:foo
irb(main):007:0>
また irb コマンドは readline ライブラリにも対応しています。
readline ライブラリがインスト......file_name opts
options:
-f ~/.irbrc を読み込まない
-m bc モード (分数と行列の計算ができる)
-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r lib......b_quit
irb を終了します。
サブ irb で呼び出した場合は、そのサブ irb だけを終了します。
: conf
: context
: irb_context
irb の現在の設定です。IRB::Context オブジェクトです。
このメソッドで得た IRB::Context オブジェクトに対......ンオプション
irb [options] file_name opts
options:
-f ~/.irbrc を読み込まない
-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r library ruby -r と同じ
-I...