method
instance
v2_1_10 -
Show latest stable
- Class:
CSV
instance(data = $stdout, options = Hash.new)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.