class TheCaptain::Response::CaptainObject

Public Instance Methods

method_missing(method_name, *args, &blk) click to toggle source
Calls superclass method
# File lib/the_captain/response/captain_object.rb, line 6
def method_missing(method_name, *args, &blk)
  prefixed_method = method_name.to_s.chomp!("?")
  prefixed_method ? @table.key?(prefixed_method.to_sym) : super
end
respond_to_missing?(method_name, include_all) click to toggle source
Calls superclass method
# File lib/the_captain/response/captain_object.rb, line 11
def respond_to_missing?(method_name, include_all)
  method_name.to_s.end_with?("?") || super
end