configure (JSON::Pure::Generator::State)

         # File lib/json/pure/generator.rb, line 194
    194:         def configure(opts)
    195:           @indent         = opts[:indent] if opts.key?(:indent)
    196:           @space          = opts[:space] if opts.key?(:space)
    197:           @space_before   = opts[:space_before] if opts.key?(:space_before)
    198:           @object_nl      = opts[:object_nl] if opts.key?(:object_nl)
    199:           @array_nl       = opts[:array_nl] if opts.key?(:array_nl)
    200:           @check_circular = !!opts[:check_circular] if opts.key?(:check_circular)
    201:           @allow_nan      = !!opts[:allow_nan] if opts.key?(:allow_nan)
    202:           if !opts.key?(:max_nesting) # defaults to 19
    203:             @max_nesting = 19
    204:           elsif opts[:max_nesting]
    205:             @max_nesting = opts[:max_nesting]
    206:           else
    207:             @max_nesting = 0
    208:           end
    209:           self
    210:         end