Class: Camping::H

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *a) ⇒ Object



50
51
# File 'lib/camping.rb', line 50

def method_missing m,*a
m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m]:raise(NoMethodError,"#{m}")end