convert(name = nil, &converter)public
You can use this method to install a CSV::Converters built-in, or provide a block that handles a custom conversion.
If you provide a block that takes one argument, it will be passed the field and is expected to return the converted value or the field itself. If your block takes two arguments, it will also be passed a CSV::FieldInfo Struct, containing details about the field. Again, the block should return a converted field or the field itself.
# File lib/csv.rb, line 1734 def convert(name = nil, &converter) add_converter(:converters, self.class::Converters, name, &converter) end