Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/superhash.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/superhash.rb', line 18 def method_missing(method, *args, &block) Superhash.keys_for(method).each do |key| return self[key] if self.key?(key) end super end |