るりまサーチ

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

別のキーワード

  1. prettyprint nest
  2. etc sc_expr_nest_max
  3. sc_expr_nest_max etc

ライブラリ

クラス

検索結果

PrettyPrint#nest(indent) {...} -> () (35101.0)

自身の現在のインデントを indent だけ増加させてから、ブロックを実行し、元に戻します。

自身の現在のインデントを indent だけ増加させてから、ブロックを実行し、元に戻します。

@param indent インデントの増加分を整数で指定します。

pp (156.0)

オブジェクトなどを見やすく出力するためのライブラリです。

...0cc0>, @nest=[0], @newline="\n",
@buf=#<PrettyPrint::Group:0x81a0c98 @group=0, @tail=0, @buf=[#<PrettyPrint::Gro
up:0x81a0ba8 @group=1, @tail=0, @buf=[#<PrettyPrint::Text:0x81a0b30 @tail=2, @wi
dth=1, @text="[">, #<PrettyPrint::Group:0x81a0a68 @group=2, @tail=1, @buf=[#<Pre
ttyPrint
::Text:0...
...e_width=1>, #
<PrettyPrint::Text:0x81a0a7c @tail=0, @width=1, @text=",">, #<PrettyPrint::Break
able:0x81a0a2c @group=2, @gensace=#<Proc:0x81a0cc0>, @newline="\n", @indent=1, @
tail=2, @sep=" ", @width=1>, #<PrettyPrint::Group:0x81a09c8 @group=2, @tail=1, @
buf=[#<PrettyPrint::Text:0x81a0950...
...w
idth=1>, #<PrettyPrint::Text:0x81a0af4 @tail=0, @width=1, @text="]">], @singleli
ne_width=6>], @singleline_width=6>, @sharing_detection=false>

pp による pretty-print された出力:
#<PP:0x40d0688
@buf=
#<PrettyPrint::Group:0x40d064c
@buf=
[#<PrettyPrint::Group:0x40d05...