Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/ec2/parser.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



5
6
7
8
9
# File 'lib/aws/ec2/parser.rb', line 5

def method_missing(meth, *args, &block)
  if args.size == 0
    self[meth.to_s] || self[meth.to_sym]
  end
end