Class: FasterCSV::Row
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &b) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/dataload/ext/faster_csv.rb', line 2 def method_missing(sym,*args,&b) if self[sym.to_s] or include?(sym.to_s) self[sym.to_s].safe_to_num else super(sym,*args,&b) end end |