種類
- インスタンスメソッド (272)
- 文書 (22)
- 特異メソッド (13)
- ライブラリ (11)
ライブラリ
- ビルトイン (21)
-
irb
/ cmd / load (11) -
irb
/ context (220) -
irb
/ ext / use-loader (11) -
irb
/ input-method (22)
クラス
-
IRB
:: Context (231) -
IRB
:: ExtendCommand :: Require (11) -
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (11) -
RubyVM
:: InstructionSequence (11) - Thread (8)
モジュール
キーワード
- Ruby用語集 (11)
-
auto
_ indent _ mode (11) -
auto
_ indent _ mode= (11) -
compile
_ file (11) - debug? (11)
- echo (11)
- echo= (11)
- echo? (11)
- execute (11)
-
ignore
_ eof (11) -
ignore
_ eof= (11) -
ignore
_ eof? (11) -
ignore
_ sigint (11) -
ignore
_ sigint= (11) -
ignore
_ sigint? (11) - inspect? (11)
- of (2)
- rc (11)
- rc? (11)
-
readable
_ atfer _ eof? (22) -
report
_ on _ exception (8) -
ruby 1
. 8 . 2 feature (11) -
use
_ loader= (11) -
use
_ readline (11) -
use
_ readline? (11) - verbose (11)
- verbose= (11)
- verbose? (11)
検索結果
先頭5件
-
irb (39646.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......す。
$ irb
irb(main):001: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:......「.irbrc」と呼称します。
以下のような (Ruby の) 式を .irbrc に記述すると、
irb コマンドのオプションを指定したのと同じ効果が得られます。
IRB.conf[:AUTO_INDENT] = false
IRB.conf[:BACK_TRACE_LIMIT] = 16
IRB.conf[:DEBUG_LEVEL] = 1
IRB.conf[:... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (12312.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......ue、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/......tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
IRB
:: InputMethod # readable _ atfer _ eof? -> false (9201.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。... -
IRB
:: ReadlineInputMethod # readable _ atfer _ eof? -> false (9201.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。... -
IRB
:: Context # use _ loader=(opt) (9166.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを設定します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを設定します。
.irbrc ファイル中で IRB.conf[:USE_LOADER] を設定する事でも同様の事が行
えます。
デフォルト値は false です。
@see IRB::Context#......use_loader?... -
IRB
:: Context # use _ readline -> bool | nil (9118.0) -
readline を使うかどうかを返します。
...readline を使うかどうかを返します。
@return 戻り値よって以下のように動作します。
: true
readline ライブラリを使う
: false
readline ライブラリを使わない
: nil
inf-ruby-mode 以外で readline ライブラリを利用しようとする (......デフォルト)
動作を変更するためには .irbrc ファイル中で IRB.conf[:USE_READLINE] の設
定や irb 起動時に --readline オプション、--noreadline オプションの指定
を行います。... -
IRB
:: Context # use _ readline? -> bool | nil (9118.0) -
readline を使うかどうかを返します。
...readline を使うかどうかを返します。
@return 戻り値よって以下のように動作します。
: true
readline ライブラリを使う
: false
readline ライブラリを使わない
: nil
inf-ruby-mode 以外で readline ライブラリを利用しようとする (......デフォルト)
動作を変更するためには .irbrc ファイル中で IRB.conf[:USE_READLINE] の設
定や irb 起動時に --readline オプション、--noreadline オプションの指定
を行います。... -
IRB
:: Context # verbose? -> bool | nil (3236.0) -
標準出力に詳細なメッセージを出力するかどうかを返します。
...うでない場
合は false か nil を返します。
設定を行っていた場合(IRB::Context#verbose が true か false を返す
場合)は設定した通りに動作します。設定を行っていない場合は、ファイルを指
定して irb を実行した場合などに tr......ue を返します。
@see IRB::Context#verbose, IRB::Context#verbose=... -
IRB
:: Context # verbose -> bool | nil (3224.0) -
標準出力に詳細なメッセージを出力するように設定されているかどうかを返し ます。
...ます。
IRB::Context#verbose? とは別のメソッドである事に注意してください。
@return 詳細なメッセージを出力するように設定されている場合は true を返
します。そうでない場合は false か nil を返します。
@see IRB::Context#ve... -
IRB
:: Context # debug? -> bool (3150.0) -
irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し ているかどうかを返します。
...
irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し
ているかどうかを返します。
デフォルト値は false です。
@see IRB::Context#debug_level, IRB::Context#debug_level=...