るりまサーチ

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

別のキーワード

  1. socket iff_tx_skb_sharing
  2. pp sharing_detection
  3. constants iff_tx_skb_sharing
  4. iff_tx_skb_sharing socket

ライブラリ

クラス

検索結果

pp (38132.0)

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

...このライブラリを require すると Kernel.#pp が定義されます。
Kernel.#p のかわりに Kernel.#pp を使うことにより、
適切にインデントと改行された分かりやすい出力を得ることが出来ます。
pp
ライブラリは、ユーザがあたらしく定...
...表示を
するように作られていますので、Kernel.#pp を使う上で余計な作業をする
必要はありません。

=== どちらが読みやすいでしょうか?

p による pretty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0],...
..., #<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:0x40d05d4...
...などを見やすく出力するためのライブラリです。

pp
ライブラリは、ユーザがあたらしく定義したクラスに対しても見やすい表示を
するように作られていますので、Kernel.#pp を使う上で余計な作業をする
必要はありません。...
...=== どちらが読みやすいでしょうか?

p による pretty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0], @newline="\n",
@buf=#<PrettyPrint::Group:0x81a0c98 @group=0, @tail=0, @buf=[#<PrettyPrint::Gro
up:0x81a0ba8 @group=1, @tail=0, @...

PP.sharing_detection=(boolean) (32162.0)

共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。

...true である場合、
PP
.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。

@param boolean 共有検出フラグを true か false で指定します。

//emlist[][ruby]{
require 'pp'

b = [1, 2, 3]
a = [b, b]

pp
a...
...#=> [[1, 2, 3], [1, 2, 3]]

PP
.sharing_detection = true
pp
a #=> [[1, 2, 3], [...]]
//}...
...
PP
.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。

@param boolean 共有検出フラグを true か false で指定します。

//emlist[][ruby]{
b = [1, 2, 3]
a = [b, b]

pp
a #=> [[1, 2, 3], [1, 2, 3]]

PP
.sh...
...aring_detection = true
pp
a #=> [[1, 2, 3], [...]]
//}...

PP.sharing_detection -> bool (17062.0)

共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。

...true である場合、
PP
.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。

@param boolean 共有検出フラグを true か false で指定します。

//emlist[][ruby]{
require 'pp'

b = [1, 2, 3]
a = [b, b]

pp
a...
...#=> [[1, 2, 3], [1, 2, 3]]

PP
.sharing_detection = true
pp
a #=> [[1, 2, 3], [...]]
//}...
...
PP
.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。

@param boolean 共有検出フラグを true か false で指定します。

//emlist[][ruby]{
b = [1, 2, 3]
a = [b, b]

pp
a #=> [[1, 2, 3], [1, 2, 3]]

PP
.sh...
...aring_detection = true
pp
a #=> [[1, 2, 3], [...]]
//}...