Flowdock
method

convert

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: CSV
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.

Show source
Register or log in to add new notes.