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



75
76
77
78
# File 'lib/constantinopolis.rb', line 75

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