Class: Geocoder::ConfigurationHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/geocoder/configuration_hash.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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


3
4
5
# File 'lib/geocoder/configuration_hash.rb', line 3

def method_missing(meth, *args, &block)
  has_key?(meth) ? self[meth] : super
end

Instance Method Details

#respond_to_missing?(meth, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/geocoder/configuration_hash.rb', line 7

def respond_to_missing?(meth, include_private = false)
  has_key?(meth) || super
end