るりまサーチ

最速Rubyリファレンスマニュアル検索!
59件ヒット [1-59件を表示] (0.127秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:inspect_mode[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils chmod_r
  5. fileutils cp_r

ライブラリ

クラス

モジュール

キーワード

検索結果

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

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

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

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

irb/ext/math-mode (12012.0)

irb コマンドで実行結果を Object#inspect の代わりに Object#to_s した結果で表示するためのサブライブラリです。

...irb コマンドで実行結果を Object#inspect の代わりに
Object#to_s した結果で表示するためのサブライブラリです。

conf.math_mode か IRB.conf[:MATH_MODE] に true を設定する事で使用できま
す。ただし、inspect_mode が設定されていた場合は ins...

irb (6270.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

R
uby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン...
...す。
r
eadline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。

=== irb のコマンドラインオプション

irb [options] file_name opts
options:
-
f ~/.irbrc を読...
...IRB.conf[:AUTO_INDENT] = false
IRB.conf[:BACK_TRACE_LIMIT] = 16
IRB.conf[:DEBUG_LEVEL] = 1
IRB.conf[:ECHO] = nil
IRB.conf[:EVAL_HISTORY] = nil
IRB.conf[:HISTORY_FILE] = nil
IRB.conf[:IGNORE_EOF] = true
IRB.conf[:IGNORE_SIGINT] = true
IRB.conf[:INSPECT_MODE] = nil
IRB.conf[:IRB_N...

IRB::Inspector.def_inspector(key, arg = nil) { |v| ... } -> object (6224.0)

新しい実行結果の出力方式を定義します。

...@param key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。

@param arg ブロックを指定する場合には、inspect_mode の初...
... require が必要な場合
などに、proc { require "foo" } といった指定を行います。
ブロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。

例.

# .irbrc
IRB::Inspector.d...
...ef_inspector([:test]){ |v| v.to_s * 2 }

$ irb --inspect test
irb(main):001:0> :abc # => abcabc

@see lib:irb#inspect_mode...

IRB.Inspector(inspect, init = nil) -> IRB::Inspector (6206.0)

IRB::Inspector オブジェクトを生成します。

...IRB::Inspector オブジェクトを生成します。

@param inspect 実行結果の出力のための手続きオブジェクトを指定します。

@param init inspect_mode の初期化のための手続きオブジェクトを指定します。
あらかじめ require が必要...
...な場合などに、proc { require "foo" }
といった指定を行います。...

絞り込み条件を変える

IRB::Context#inspect? -> bool (3128.0)

IRB::Context#inspect_mode が有効かどうかを返します。

...IRB::Context#inspect_mode が有効かどうかを返します。

@return 出力結果に to_s したものを表示する場合は false を返します。それ
以外の場合は true を返します。

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