method

instance

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: CSV
instance(data = $stdout, **options) public

This method will return a CSV instance, just like CSV::new(), but the instance will be cached and returned for all future calls to this method for the same data object (tested by Object#object_id()) with the same options.

If a block is given, the instance is passed to the block and the return value becomes the return value of the block.

Show source
Register or log in to add new notes.