Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/dotable_hash.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
2 3 4 |
# File 'lib/dotable_hash.rb', line 2 def method_missing(name, *args, &block) self[name.to_s] || self[name.to_sym] end |