Module: Constantinopolis::AccessableHash

Defined in:
lib/constantinopolis.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



81
82
83
84
# File 'lib/constantinopolis.rb', line 81

def method_missing(name, *args, &block)
  key = name.to_s
  self.has_key?(key) ? self[key] : super
end