Class: Hash

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym) ⇒ Object



2
3
4
# File 'lib/basicjrpc/hash.rb', line 2

def method_missing(sym,*)
  fetch(sym){fetch(sym.to_s){super}}
end