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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Instantiates a new State object, configured by <em>opts</em>.
- !ruby/struct:SM::Flow::P 
  body: "<em>opts</em> can have the following keys:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<b>indent</b>: a string used to indent levels (default: ''),"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<b>space</b>: a string that is put after, a : or , delimiter (default: ''),"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<b>space_before</b>: a string that is put before a : pair delimiter (default: ''),"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<b>object_nl</b>: a string that is put at the end of a JSON object (default: ''),"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<b>array_nl</b>: a string that is put at the end of a JSON array (default: ''),"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<b>check_circular</b>: true if checking for circular data structures should be done, false (the default) otherwise."
  - !ruby/struct:SM::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
