module SimpleRepresenter::CallableHash

Private Instance Methods

method_missing(symbol, *args) click to toggle source
Calls superclass method
# File lib/simple_representer/callable_hash.rb, line 7
def method_missing(symbol, *args)
  return self[symbol] if include?(symbol)
  return self[symbol.to_s] if include?(symbol.to_s)

  super
end
respond_to_missing?(symbol, include_private = false) click to toggle source
Calls superclass method
# File lib/simple_representer/callable_hash.rb, line 14
def respond_to_missing?(symbol, include_private = false)
  include?(symbol) || include?(symbol.to_s) || super
end