class JSON::Ext::Generator::State
def initialize(opts = nil)
* *buffer_initial_length*: sets the initial length of the generator's
option defaults to false.
* *ascii_only*: true if only ASCII characters should be generated. This
encountered. This options defaults to false.
generated, otherwise an exception is thrown, if these values are
* *allow_nan*: true if NaN, Infinity, and -Infinity should be
* *array_nl*: a string that is put at the end of a JSON array (default: ''),
* *object_nl*: a string that is put at the end of a JSON object (default: ''),
* *space_before*: a string that is put before a : pair delimiter (default: ''),
* *space*: a string that is put after, a : or , delimiter (default: ''),
* *indent*: a string used to indent levels (default: ''),
_opts_ can have the following keys:
Instantiates a new State object, configured by _opts_.
call-seq: new(opts = {})
def initialize(opts = nil) if opts && !opts.empty? configure(opts) end end