Class: Coderwall::Hash
- Inherits:
-
Hash
- Object
- Hash
- Coderwall::Hash
- Defined in:
- lib/coderwall-api/hash.rb
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Hash
constructor
A new instance of Hash.
- #method_missing(method_name, *args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/coderwall-api/hash.rb', line 11 def method_missing(method_name, *args) if key?(method_name.to_sym) self[method_name.to_sym] else super end end |