Class: Hash

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



2
3
4
5
6
# File 'lib/core_extentions.rb', line 2

def method_missing(name, *args)
  name = name.to_s
  name.gsub!("_", " ")
  self[name]
end