class Object
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/choices/rails.rb, line 54 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
respond_to?(method)
click to toggle source
Calls superclass method
# File lib/choices/rails.rb, line 48 def respond_to?(method) super or method.to_s =~ /=$/ or (method.to_s =~ /\?$/ and @choices.key?($`)) end