Module: SimpleRepresenter::CallableHash
- Defined in:
- lib/simple_representer/callable_hash.rb
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object (private)
7 8 9 10 11 12 |
# 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 |