array_nl() Instance Public methods This string is put at the end of a line that holds a JSON array.
array_nl=(array_nl) Instance Public methods This string is put at the end of a line that holds a JSON array.
ascii_only? Instance Public methods Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise returns false.
buffer_initial_length Instance Public methods This integer returns the current inital length of the buffer.
buffer_initial_length=(length) Instance Public methods This sets the initial length of the buffer to length, if length > 0, otherwise its value isn't changed.
check_circular? Instance Public methods Returns true, if circular data structures should be checked, otherwise returns false.
configure(opts) Instance Public methods Configure this State instance with the Hash opts, and return itself. merge
depth Instance Public methods This integer returns the current depth of data structure nesting.
depth=(depth) Instance Public methods This sets the maximum level of data structure nesting in the generated JSON to the integer depth, #max_nesting = 0 if no maximum should be checked.
generate(obj) Instance Public methods Generates a valid JSON document from object obj and returns the result. If no valid JSON document can be created this method raises a GeneratorError exception.
Page 518 of 11844