Module: GoogleMaps::Services::HashDot

Defined in:
lib/googlemaps/services/util.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *opts) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/googlemaps/services/util.rb', line 10

def method_missing(method, *opts)
  m = method.to_s
  if self.has_key?(m)
    return self[m]
  elsif self.has_key?(m.to_sym)
    return self[m.to_sym]
  end
  super
end