Class: FasterCSV::Row

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object

allows for hash access by virtual attributes



3
4
5
# File 'lib/hacks.rb', line 3

def method_missing(method_name, *args)
  self[method_name] || self[method_name.to_s] || nil
end