to_h -> HashRuby 1.9.3 から[permalink][rdoc][edit]to_hash -> HashRuby 2.1.0 から-
自身をハッシュに変換します。
例require "json" require "pp" json_state = JSON::State.new pp json_state.to_h # => {indent: "", # space: "", # space_before: "", # object_nl: "", # array_nl: "", # allow_nan: false, # ascii_only: false, # max_nesting: 100, # depth: 0, # buffer_initial_length: 1024}