Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

JSON::Ext::Generator::State#to_hash

to_hash

Alias of #to_h

Returns the configuration instance variables as a hash, that can be passed to the configure method.

See also #to_h #space_before= also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1