--- !ruby/object:RDoc::RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Instantiates a new State object, configured by <em>opts</em>.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "<em>opts</em> can have the following keys:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>indent</b>: a string used to indent levels (default: ''),"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>space</b>: a string that is put after, a : or , delimiter (default: ''),"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>space_before</b>: a string that is put before a : pair delimiter (default: ''),"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>object_nl</b>: a string that is put at the end of a JSON object (default: ''),"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>array_nl</b>: a string that is put at the end of a JSON array (default: ''),"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>check_circular</b>: true if checking for circular data structures should be done, false (the default) otherwise."
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "*"
    :body: "<b>allow_nan</b>: true if NaN, Infinity, and -Infinity should be generated, otherwise an exception is thrown, if these values are encountered. This options defaults to false."
  type: :BULLET
full_name: JSON::Ext::Generator::State::new
is_singleton: true
name: new
params: " new(opts = {})\n"
visibility: public
