Module: CSVRow::Normalizer
- Included in:
- CSVRow
- Defined in:
- lib/csv_row/normalizer.rb
Overview
common methods to be used to normalize values
Instance Method Summary collapse
Instance Method Details
#comma_list_to_pointer(str) ⇒ Object
4 5 6 |
# File 'lib/csv_row/normalizer.rb', line 4 def comma_list_to_pointer str str.split(",").map(&:strip).to_pointer_content end |
#to_html(value) ⇒ Object
8 9 10 |
# File 'lib/csv_row/normalizer.rb', line 8 def to_html value value.gsub "\n", "<br\>" end |