Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/EC2/responses.rb
Overview
This allows us to access hash values as if they were methods e.g. foo can be accessed as foo.bar
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
15 16 17 18 19 |
# File 'lib/EC2/responses.rb', line 15 def method_missing(meth, *args, &block) if args.size == 0 self[meth.to_s] || self[meth.to_sym] end end |