ライブラリ
-
irb
/ context (45) -
irb
/ ext / history (1) -
irb
/ ext / math-mode (2) -
irb
/ ext / save-history (3) -
irb
/ ext / tracer (2) -
irb
/ ext / use-loader (2)
キーワード
-
_ _ inspect _ _ (1) -
_ _ to _ s _ _ (1) -
ap
_ name (1) -
auto
_ indent _ mode (1) -
back
_ trace _ limit (1) - debug? (1)
-
debug
_ level (1) - echo (1)
- echo? (1)
-
eval
_ history (1) - evaluate (1)
- exit (1)
-
file
_ input? (1) -
history
_ file (1) -
ignore
_ eof (1) -
ignore
_ eof= (1) -
ignore
_ eof? (1) -
ignore
_ sigint (1) -
ignore
_ sigint= (1) -
ignore
_ sigint? (1) -
init
_ save _ history (1) - inspect (1)
- inspect? (1)
-
inspect
_ mode (1) - io (1)
- irb (1)
-
irb
_ name (1) -
irb
_ path (1) -
last
_ value (1) -
load
_ modules (1) - main (1)
- math? (1)
-
math
_ mode (1) -
prompt
_ c (1) -
prompt
_ i (1) -
prompt
_ mode (1) -
prompt
_ n (1) -
prompt
_ s (1) - prompting? (1)
- rc (1)
- rc? (1)
-
return
_ format (1) -
save
_ history (1) -
set
_ last _ value (1) - thread (1)
-
to
_ s (1) -
use
_ loader (1) -
use
_ loader? (1) -
use
_ readline (1) -
use
_ readline? (1) -
use
_ tracer (1) -
use
_ tracer? (1) - verbose (1)
- verbose? (1)
- workspace (1)
検索結果
先頭5件
-
IRB
:: Context # set _ last _ value(value) -> object (27907.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # evaluate(line , line _ no) -> object (27607.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # thread -> Thread (18907.0) -
現在のスレッドを返します。
現在のスレッドを返します。
@see Thread.current -
IRB
:: Context # ignore _ sigint -> bool (18655.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
...alse の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint=... -
IRB
:: Context # ignore _ sigint? -> bool (18655.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
...alse の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint=... -
IRB
:: Context # _ _ inspect _ _ -> String (18607.0) -
自身を文字列表現にしたオブジェクトを返します。
自身を文字列表現にしたオブジェクトを返します。 -
IRB
:: Context # _ _ to _ s _ _ -> String (18607.0) -
自身を文字列表現にしたオブジェクトを返します。
自身を文字列表現にしたオブジェクトを返します。 -
IRB
:: Context # auto _ indent _ mode -> bool (18607.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode=... -
IRB
:: Context # back _ trace _ limit -> Integer (18607.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
...エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
デフォルト値は 16 です。
@see IRB::Context#back_trace_limit=... -
IRB
:: Context # eval _ history -> Integer | nil (18607.0) -
実行結果の履歴の最大保存件数を Integer か nil で返します。
...履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 を返し
た場合は無制限に保存します。nil を返した場合は追加の保存は行いません。
@see IRB::Context#eval_history=... -
IRB
:: Context # exit(ret = 0) -> object (18607.0) -
irb を終了します。ret で指定したオブジェクトを返します。
irb を終了します。ret で指定したオブジェクトを返します。
@param ret 戻り値を指定します。
@see IRB.irb_exit -
IRB
:: Context # file _ input? -> bool (18607.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # history _ file -> String | nil (18607.0) -
履歴ファイルのパスを返します。
履歴ファイルのパスを返します。
@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。
@see lib:irb#history -
IRB
:: Context # init _ save _ history -> () (18607.0) -
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える ようにします。
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える
ようにします。
@see IRB::HistorySavingAbility.extended -
IRB
:: Context # inspect -> String (18607.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。 -
IRB
:: Context # inspect? -> bool (18607.0) -
IRB::Context#inspect_mode が有効かどうかを返します。
...
IRB::Context#inspect_mode が有効かどうかを返します。
@return 出力結果に to_s したものを表示する場合は false を返します。それ
以外の場合は true を返します。
@see IRB::Context#inspect_mode, IRB::Context#inspect_mode=... -
IRB
:: Context # inspect _ mode -> object | nil (18607.0) -
実行結果の出力方式を返します。
...実行結果の出力方式を返します。
@see IRB::Context#inspect_mode=... -
IRB
:: Context # irb _ path -> String (18607.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # last _ value -> object (18607.0) -
irb 中での最後の実行結果を返します。
irb 中での最後の実行結果を返します。 -
IRB
:: Context # math? -> bool (18607.0) -
math_mode が有効かどうかを返します。
...math_mode が有効かどうかを返します。
@see IRB::Context#math_mode=, IRB::Context#inspect?... -
IRB
:: Context # math _ mode -> bool (18607.0) -
math_mode が有効かどうかを返します。
...math_mode が有効かどうかを返します。
@see IRB::Context#math_mode=, IRB::Context#inspect?... -
IRB
:: Context # prompt _ c -> String (18607.0) -
式が継続している時のプロンプトを表現するフォーマット文字列を返します。
...式が継続している時のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_c=, lib:irb#customize_prompt... -
IRB
:: Context # prompt _ i -> String (18607.0) -
通常のプロンプトを表現するフォーマット文字列を返します。
...通常のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_i=,lib:irb#customize_prompt... -
IRB
:: Context # prompt _ mode -> Symbol (18607.0) -
現在のプロンプトモードを Symbol で返します。
...そうでない場合は、:DEFAULT、:CLASSIC、:SIMPLE、:INF_RUBY、:XMP、:NULL
のいずれかを返します。
定義済みのプロンプトモードの内容については、IRB.conf[:PROMPT][mode] を
参照してください。
@see IRB::Context#prompt_mode=, lib:irb#customize_prompt... -
IRB
:: Context # prompt _ n -> String (18607.0) -
継続行のプロンプトを表現するフォーマット文字列を返します。
...継続行のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_n=, lib:irb#customize_prompt... -
IRB
:: Context # prompt _ s -> String (18607.0) -
文字列中のプロンプトを表現するフォーマット文字列を返します。
...文字列中のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_s=, lib:irb#customize_prompt... -
IRB
:: Context # prompting? -> bool (18607.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # return _ format -> String (18607.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
...irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
@see IRB::Context#return_format=, print_format... -
IRB
:: Context # save _ history -> Integer | nil (18607.0) -
履歴の最大保存件数を Integer か nil で返します。
履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 以下や
nil を返した場合は追加の保存は行いません。
@see lib:irb#history -
IRB
:: Context # to _ s -> String (18607.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。 -
IRB
:: Context # use _ tracer -> bool (18607.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
...irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer=... -
IRB
:: Context # use _ tracer? -> bool (18607.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
...irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer=... -
IRB
:: Context # ignore _ sigint=(val) (18391.0) -
Ctrl-C が入力された時に irb を終了するかどうかを val に設定します。
...に irb を終了します。
true を指定した場合、Ctrl-C の入力時に以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
@see IRB::Context#ignore_sigint... -
IRB
:: Context # load _ modules -> [String] (9655.0) -
irb の起動時に -r オプション指定で読み込まれたライブラリ、~/.irbrc など の設定ファイル内で IRB.conf[:LOAD_MODULES] 指定で読み込まれたライブラリ の名前の配列を返します。
irb の起動時に -r オプション指定で読み込まれたライブラリ、~/.irbrc など
の設定ファイル内で IRB.conf[:LOAD_MODULES] 指定で読み込まれたライブラリ
の名前の配列を返します。 -
IRB
:: Context # ap _ name -> String (9607.0) -
自身のアプリケーション名を返します。
...自身のアプリケーション名を返します。
デフォルト値は "irb" です。
@see IRB::Context#ap_name=... -
IRB
:: Context # debug _ level -> Integer (9607.0) -
irb のデバッグレベルを返します。
...irb のデバッグレベルを返します。
デフォルト値は 0 です。
@see IRB::Context#debug_level=, IRB::Context#debug?... -
IRB
:: Context # io -> IRB :: InputMethod (9607.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # irb _ name -> String (9607.0) -
起動しているコマンド名を文字列で返します。
...起動しているコマンド名を文字列で返します。
@see IRB::Context#irb_name=... -
IRB
:: Context # main -> object (9607.0) -
self に設定されたオブジェクトを返します。
self に設定されたオブジェクトを返します。
@see cwws コマンド -
IRB
:: Context # ignore _ eof -> bool (9373.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
...Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
true の時は Ctrl-D を無視します。false の時は irb を終了します。
デフォルト値は false です。
@see IRB::Context#ignore_eof=... -
IRB
:: Context # ignore _ eof? -> bool (9373.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
...Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
true の時は Ctrl-D を無視します。false の時は irb を終了します。
デフォルト値は false です。
@see IRB::Context#ignore_eof=... -
IRB
:: Context # use _ readline -> bool | nil (9343.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 (9343.0) -
readline を使うかどうかを返します。
readline を使うかどうかを返します。
@return 戻り値よって以下のように動作します。
: true
readline ライブラリを使う
: false
readline ライブラリを使わない
: nil
inf-ruby-mode 以外で readline ライブラリを利用しようとする (デフォルト)
動作を変更するためには .irbrc ファイル中で IRB.conf[:USE_READLINE] の設
定や irb 起動時に --readline オプション、--noreadline オプションの指定
を行います。 -
IRB
:: Context # rc -> bool (9325.0) -
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
@return 設定ファイルの読み込みを行う場合は true を返します。行わない場
合(irb の起動時に -f オプションを指定した場合)は false を返しま
す。 -
IRB
:: Context # rc? -> bool (9325.0) -
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
@return 設定ファイルの読み込みを行う場合は true を返します。行わない場
合(irb の起動時に -f オプションを指定した場合)は false を返しま
す。 -
IRB
:: Context # debug? -> bool (9307.0) -
irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し ているかどうかを返します。
...irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し
ているかどうかを返します。
デフォルト値は false です。
@see IRB::Context#debug_level, IRB::Context#debug_level=... -
IRB
:: Context # echo -> bool (9307.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
IRB
:: Context # echo? -> bool (9307.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
IRB
:: Context # irb -> IRB :: Irb (9307.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # use _ loader -> bool (9307.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
IRB
:: Context # use _ loader? -> bool (9307.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
IRB
:: Context # verbose -> bool | nil (9307.0) -
標準出力に詳細なメッセージを出力するように設定されているかどうかを返し ます。
...す。
IRB::Context#verbose? とは別のメソッドである事に注意してください。
@return 詳細なメッセージを出力するように設定されている場合は true を返
します。そうでない場合は false か nil を返します。
@see IRB::Context#verbos... -
IRB
:: Context # verbose? -> bool | nil (9307.0) -
標準出力に詳細なメッセージを出力するかどうかを返します。
...行っていた場合(IRB::Context#verbose が true か false を返す
場合)は設定した通りに動作します。設定を行っていない場合は、ファイルを指
定して irb を実行した場合などに true を返します。
@see IRB::Context#verbose, IRB::Context#verbose=... -
IRB
:: Context # workspace -> IRB :: WorkSpace (9307.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # ignore _ eof=(val) (9091.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを val に設定します。
....irbrc ファイル中で IRB.conf[:IGNORE_EOF] を設定する事でも同様の操作が
行えます。
@param val true を指定した場合、 Ctrl-D を無視します。false を指定した
場合は Ctrl-D の入力時に irb を終了します。
@see IRB::Context#ignore_eof...