module Hashie::Extensions::MethodQuery
def method_missing(name, *args)
def method_missing(name, *args) if args.empty? && name.to_s =~ /(.*)\?$/ && (key?(Regexp.last_match[1]) || key?(Regexp.last_match[1].to_sym)) return self[Regexp.last_match[1]] || self[Regexp.last_match[1].to_sym] end super end