67件ヒット
[1-67件を表示]
(0.026秒)
ライブラリ
-
irb
/ context (11) -
irb
/ output-method (22) -
minitest
/ unit (1) - pp (33)
クラス
-
IRB
:: Context (11) -
IRB
:: OutputMethod (22) - Object (33)
モジュール
キーワード
-
inspect
_ mode= (11) -
mu
_ pp (1) - ppx (11)
-
pretty
_ inspect (11) -
pretty
_ print (11) -
pretty
_ print _ inspect (11)
検索結果
先頭5件
-
IRB
:: OutputMethod # pp(*objs) -> object (18118.0) -
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
...各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。... -
Object
# pretty _ inspect -> String (14118.0) -
self を pp で表示したときの結果を文字列として返します。
...self を pp で表示したときの結果を文字列として返します。... -
Object
# pretty _ print _ inspect -> String (14118.0) -
Object#pretty_print を使って Object#inspect と同様に オブジェクトを人間が読める形式に変換した文字列を返します。
...Object#pretty_print を使って Object#inspect と同様に
オブジェクトを人間が読める形式に変換した文字列を返します。
出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。
そうでない場合には RuntimeEr... -
Object
# pretty _ print(pp) -> () (8230.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに
呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
あるクラスの pp の出力をカスタマイズしたい場合は、このメソッドを再定義します。
そのと......ッドは指定された pp に対して表示したい自身の内容を追加して
いかなければいけません。いくつかの組み込みクラスについて、
pp ライブラリはあらかじめ pretty_print メソッドを定義しています。
@param pp PP オブジェクトで......す。
//emlist[][ruby]{
require 'pp'
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable......す。
//emlist[][ruby]{
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable... -
IRB
:: Context # inspect _ mode=(opt) (6138.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... -
MiniTest
:: Assertions # mu _ pp(object) -> String (6118.0) -
Object#inspect した結果のエンコーディングを変更して返します。
...Object#inspect した結果のエンコーディングを変更して返します。
エンコーディングは Encoding.default_external に変更されます。
@param object 任意のオブジェクトを指定します。... -
IRB
:: OutputMethod # ppx(prefix , *objs) -> object (6117.0) -
引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。
...引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。
@param prefix 各 obj の先頭に追記する文字列を指定します。
@param objs 任意のオブジェクトを指定します。...