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