92件ヒット
[1-92件を表示]
(0.077秒)
種類
- インスタンスメソッド (33)
- ライブラリ (26)
- 特異メソッド (22)
- オブジェクト (11)
ライブラリ
-
irb
/ context (33) -
irb
/ inspector (33)
クラス
-
IRB
:: Context (33) -
IRB
:: Inspector (11)
モジュール
- IRB (11)
キーワード
- INSPECTORS (11)
- Inspector (11)
-
def
_ inspector (11) - inspect? (11)
-
inspect
_ mode= (11) - irb (11)
-
irb
/ ext / math-mode (4) -
irb
/ inspector (11)
検索結果
先頭5件
-
IRB
:: Context # inspect _ mode -> object | nil (44207.0) -
実行結果の出力方式を返します。
...実行結果の出力方式を返します。
@see IRB::Context#inspect_mode=... -
IRB
:: Context # inspect _ mode=(opt) (32207.0) -
実行結果の出力方式を opt に設定します。
...: false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp, :pretty_inspect
出力結果を pretty_inspect したものを表示します。
: :yaml, :YAML
出力結果を YAML 形式にし......たものを表示します。
: :marshal, :Marshal, :MARSHAL, Marshal
出力結果を Marshal.#dump したものを表示します。
@see lib:irb#inspect_mode... -
IRB
. Inspector(inspect , init = nil) -> IRB :: Inspector (26406.0) -
IRB::Inspector オブジェクトを生成します。
...
IRB::Inspector オブジェクトを生成します。
@param inspect 実行結果の出力のための手続きオブジェクトを指定します。
@param init inspect_mode の初期化のための手続きオブジェクトを指定します。
あらかじめ require が必要......な場合などに、proc { require "foo" }
といった指定を行います。... -
IRB
:: Context # inspect? -> bool (26128.0) -
IRB::Context#inspect_mode が有効かどうかを返します。
...
IRB::Context#inspect_mode が有効かどうかを返します。
@return 出力結果に to_s したものを表示する場合は false を返します。それ
以外の場合は true を返します。
@see IRB::Context#inspect_mode, IRB::Context#inspect_mode=... -
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (26124.0) -
新しい実行結果の出力方式を定義します。
...aram key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。
@param arg ブロックを指定する場合には、inspect_mode の初期化......quire が必要な場合
などに、proc { require "foo" } といった指定を行います。
ブロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。
例.
# .irbrc
IRB::Inspector.def_ins......pector([:test]){ |v| v.to_s * 2 }
$ irb --inspect test
irb(main):001:0> :abc # => abcabc
@see lib:irb#inspect_mode... -
IRB
:: Inspector :: INSPECTORS (26022.0) -
定義された inspect_mode を管理する Hash オブジェクトです。
...定義された inspect_mode を管理する Hash オブジェクトです。
デフォルトで扱える Inspector については lib:irb#inspect_mode を
参照してください。... -
irb (6114.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:1>......
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_... -
irb
/ inspector (6016.0) -
irb コマンドで実行結果の出力方式(inspect_mode)を定義するためのサブライ ブラリです。
...irb コマンドで実行結果の出力方式(inspect_mode)を定義するためのサブライ
ブラリです。... -
irb
/ ext / math-mode (6012.0) -
irb コマンドで実行結果を Object#inspect の代わりに Object#to_s した結果で表示するためのサブライブラリです。
...irb コマンドで実行結果を Object#inspect の代わりに
Object#to_s した結果で表示するためのサブライブラリです。
conf.math_mode か IRB.conf[:MATH_MODE] に true を設定する事で使用できま
す。ただし、inspect_mode が設定されていた場合は ins...