Parent

Methods

Included Modules

Hashie::Hash

A Hashie Hash is simply a Hash that has convenience functions baked in such as stringify_keys that may not be available in all libraries.

Public Instance Methods

to_hash() click to toggle source

Converts a mash back to a hash (with stringified keys)

    # File lib/hashie/hash.rb, line 9
 9:     def to_hash
10:       out = {}
11:       keys.each do |k|
12:         out[k] = Hashie::Hash === self[k] ? self[k].to_hash : self[k]
13:       end
14:       out
15:     end
to_json(*args) click to toggle source

The C geneartor for the json gem doesn’t like mashies

    # File lib/hashie/hash.rb, line 18
18:     def to_json(*args)
19:       to_hash.to_json(*args)
20:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.