33件ヒット
[1-33件を表示]
(0.083秒)
別のキーワード
検索結果
先頭3件
-
IRB
:: ExtendCommand :: Nop # irb _ context -> IRB :: Context (18201.0) -
irb の現在の設定(IRB::Context)を返します。
irb の現在の設定(IRB::Context)を返します。 -
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (18201.0) -
現在の irb に関する IRB::Context を返します。
現在の irb に関する IRB::Context を返します。 -
irb (474.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):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>......PT_I => nil, # 通常時のプロンプト
:PROMPT_N => nil, # 継続行のプロンプト
:PROMPT_S => nil, # 文字列などの継続行のプロンプト
:PROMPT_C => nil, # 式が継続している時のプロンプト
:RETURN => " ==>%s\n"......b_quit
irb を終了します。
サブ irb で呼び出した場合は、そのサブ irb だけを終了します。
: conf
: context
: irb_context
irb の現在の設定です。IRB::Context オブジェクトです。
このメソッドで得た IRB::Context オブジェクトに対...