Module: FTPMVC::Formats::CSV::ClassMethods
- Defined in:
- lib/ftpmvc/format/csv.rb
Instance Method Summary collapse
Instance Method Details
#date_format(format) ⇒ Object
35 36 37 |
# File 'lib/ftpmvc/format/csv.rb', line 35 def date_format(format) @date_format = format end |
#format(field) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/ftpmvc/format/csv.rb', line 39 def format(field) case field.class.name when 'Date' format_date(field) else field end end |