Class: AttrHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/backnob/hash.rb

Instance Method Summary collapse

Methods inherited from Hash

#symbolize_keys!

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/backnob/hash.rb', line 15

def method_missing(symbol, *args)
  if self.has_key?(symbol)
    self[symbol]
  else
    super
  end
end