るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. integer >
  4. comparable >
  5. float >

ライブラリ

クラス

検索結果

PP.sharing_detection -> bool (30408.0)

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

...#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,...
...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.sharing_detection = true
pp a #=> [[1, 2, 3], [.....