Method: JSON.state

Defined in:
lib/json/common.rb

.stateObject

Sets or Returns the JSON generator state class that is used by JSON. This is either JSON::Ext::Generator::State or JSON::Pure::Generator::State:

JSON.state # => JSON::Ext::Generator::State


108
109
110
# File 'lib/json/common.rb', line 108

def state
  @state
end