class Thor::Options::Hash
def method_missing(method, *args, &block)
Magic predicates. For instance:
def method_missing(method, *args, &block) method.to_s =~ /^(\w+)\?$/ ? !!self[$1] : super end
def method_missing(method, *args, &block) method.to_s =~ /^(\w+)\?$/ ? !!self[$1] : super end