class JSON::Ext::Generator::State

def configure(opts)

itself.
Configure this State instance with the Hash _opts_, and return

call-seq: configure(opts)
def configure(opts)
  unless opts.is_a?(Hash)
    if opts.respond_to?(:to_hash)
      opts = opts.to_hash
    elsif opts.respond_to?(:to_h)
      opts = opts.to_h
    else
      raise TypeError, "can't convert #{opts.class} into Hash"
    end
  end
  _configure(opts)
end