Class: WURFL::Hash

Inherits:
Hash
  • Object
show all
Defined in:
lib/wurfl-lite.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object



26
27
28
# File 'lib/wurfl-lite.rb', line 26

def method_missing( method )
  has_key?( method ) ? self[ method ] : ( self[ :fall_back ] ? self[ :fall_back ].send( method ) : nil )
end