Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-openstack-cloud-provider/action/read_ssh_info_from_cache.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



5
6
7
8
9
# File 'lib/vagrant-openstack-cloud-provider/action/read_ssh_info_from_cache.rb', line 5

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