method

load

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: CSV
load(io_or_str, options = Hash.new) public

This method is the reading counterpart to CSV::dump(). See that method for a detailed description of the process.

You can customize loading by adding a class method called csv_load() which will be passed a Hash of meta information, an Array of headers, and an Array of fields for the object the method is expected to return.

Remember that all fields will be Strings after this load. If you need something else, use options to setup converters or provide a custom csv_load() implementation.

Show source
Register or log in to add new notes.