Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/brio/utils.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
3 4 5 6 7 |
# File 'lib/brio/utils.rb', line 3 def method_missing(name) return self[name] if key? name self.each { |k,v| return v if k.to_s.to_sym == name } super.method_missing name end |