module Hashie::Extensions::MethodReader
def method_missing(name, *args)
def method_missing(name, *args) if key?(name) self[name] else sname = name.to_s if key?(sname) self[sname] elsif sname[-1] == '?' kname = sname[0..-2] key?(kname) || key?(kname.to_sym) else super end end end
def respond_to_missing?(name, include_private = false)
def respond_to_missing?(name, include_private = false) return true if key?(name.to_s) || key?(name.to_sym) super end