るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.037秒)
トップページ > クエリ:Array[x] > バージョン:2.5.0[x] > クエリ:p[x] > クラス:JSON::State[x]

別のキーワード

  1. array fill
  2. array []
  3. array sample
  4. array []=
  5. array new

ライブラリ

検索結果

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

自身を初期化します。

...by]{
require "json"

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

//emlist[例 JSON::State を指定][ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # =...