Class: Hash

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

Direct Known Subclasses

Pupil::Stream::Hash

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(action, *args) ⇒ Object



2
3
4
# File 'lib/pupil/essentials.rb', line 2

def method_missing(action, *args)
  return self[action.to_s] rescue raise NoMethodError
end