indent=(indent) Instance Public methods This string is used to indent levels in the JSON text.
indent() Instance Public methods This string is used to indent levels in the JSON text.
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.
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.
depth Instance Public methods This integer returns the current depth of data structure nesting.
configure(opts) Instance Public methods Configure this State instance with the Hash opts, and return itself. merge
check_circular? Instance Public methods Returns true, if circular data structures should be checked, otherwise returns false.
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.
buffer_initial_length Instance Public methods This integer returns the current inital length of the buffer.
ascii_only? Instance Public methods Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise returns false.
Page 1814 of 2275