# File lib/choices/rails.rb, line 41 def method_missing(method, *args, &block) if method.to_s =~ /=$/ or (method.to_s =~ /\?$/ and @choices.key?($`)) @choices.send(method, *args) elsif @choices.key?(method) @choices[method] else super end end
# File lib/choices/rails.rb, line 35 def respond_to?(method) super or method.to_s =~ /=$/ or (method.to_s =~ /\?$/ and @choices.key?($`)) end