Module: Csv2hash::Parser

Included in:
Collection, Mapping
Defined in:
lib/csv2hash/parser.rb,
lib/csv2hash/parser/mapping.rb,
lib/csv2hash/parser/collection.rb

Defined Under Namespace

Modules: Collection, Mapping

Instance Method Summary collapse

Instance Method Details

#treat(content) ⇒ Object



4
5
6
7
# File 'lib/csv2hash/parser.rb', line 4

def treat(content)
  return content unless self.options.fetch(:sanitizer){false}
  sanitize(content)
end