Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/dataload/table_loader.rb,
lib/dataload/ext/faster_csv.rb
Instance Method Summary collapse
Instance Method Details
#fattr_tm(name, &b) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/dataload/table_loader.rb', line 12 def fattr_tm(name,&b) fattr(name) do tm(name) do instance_eval(&b) end end end |
#safe_to_num ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/dataload/ext/faster_csv.rb', line 18 def safe_to_num if self =~ /^\d+$/ to_i else self end end |