Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/same/common.rb,
lib/objects/same/common_2.rb

Overview

Monday, August 24 2020

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name) ⇒ Object



8
9
10
# File 'lib/objects/same/common.rb', line 8

def method_missing(method_name)
  self[method_name.to_s]
end