るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.078秒)
トップページ > 種類:特異メソッド[x] > クエリ:length[x] > クラス:JSON::State[x]

別のキーワード

  1. _builtin length
  2. csv length
  3. dbm length
  4. set length
  5. rss length

ライブラリ

検索結果

JSON::State.new(options = {}) -> JSON::State (14.0)

自身を初期化します。

...uffer_initial_length
sets the initial length of the generator's internal buffer.

//emlist[例 Hash を指定][ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}

//emlist[例 JSON::State を指定][r...
...uby]{
require "json"

json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # => JSON::Ext::Generator::State
copy.indent # => "\t"
//}...