るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
8件ヒット [1-8件を表示] (0.074秒)
トップページ > バージョン:2.6.0[x] > 種類:インスタンスメソッド[x] > クエリ:|[x] > クラス:IRB::Context[x]

別のキーワード

  1. _builtin |
  2. set |
  3. ipaddr |
  4. array |
  5. integer |

検索結果

IRB::Context#use_readline -> bool | nil (313.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 (313.0)

readline を使うかどうかを返します。

readline を使うかどうかを返します。

@return 戻り値よって以下のように動作します。

: true
readline ライブラリを使う
: false
readline ライブラリを使わない
: nil
inf-ruby-mode 以外で readline ライブラリを利用しようとする (デフォルト)

動作を変更するためには .irbrc ファイル中で IRB.conf[:USE_READLINE] の設
定や irb 起動時に --readline オプション、--noreadline オプションの指定
を行います。

IRB::Context#eval_history -> Integer | nil (310.0)

実行結果の履歴の最大保存件数を Integer か nil で返します。

...履歴の最大保存件数を Integer か nil で返します。

@return 履歴の最大保存件数を Integer か nil で返します。0 を返し
た場合は無制限に保存します。nil を返した場合は追加の保存は行いません。

@see IRB::Context#eval_history=...

IRB::Context#history_file -> String | nil (310.0)

履歴ファイルのパスを返します。

履歴ファイルのパスを返します。

@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。

@see lib:irb#history

IRB::Context#inspect_mode -> object | nil (310.0)

実行結果の出力方式を返します。

...実行結果の出力方式を返します。

@see IRB::Context#inspect_mode=...

絞り込み条件を変える

IRB::Context#save_history -> Integer | nil (310.0)

履歴の最大保存件数を Integer か nil で返します。

履歴の最大保存件数を Integer か nil で返します。

@return 履歴の最大保存件数を Integer か nil で返します。0 以下や
nil を返した場合は追加の保存は行いません。

@see lib:irb#history

IRB::Context#verbose -> bool | nil (310.0)

標準出力に詳細なメッセージを出力するように設定されているかどうかを返し ます。

...す。

IRB::Context
#verbose? とは別のメソッドである事に注意してください。

@return 詳細なメッセージを出力するように設定されている場合は true を返
します。そうでない場合は false か nil を返します。

@see IRB::Context#verbos...

IRB::Context#verbose? -> bool | nil (310.0)

標準出力に詳細なメッセージを出力するかどうかを返します。

...行っていた場合(IRB::Context#verbose が true か false を返す
場合)は設定した通りに動作します。設定を行っていない場合は、ファイルを指
定して irb を実行した場合などに true を返します。


@see IRB::Context#verbose, IRB::Context#verbose=...