CSV(*args, &block)
Instance Public methods
Passes args
to CSV.instance.
1 2 | CSV ( "CSV,data" ).read #=> [["CSV", "data"]] |
If a block is given, the instance is passed the block and the return value becomes the return value of the block.
1 2 3 4 5 6 7 | CSV ( "CSV,data" ) { |c| c.read.any? { |a| a.include?( "data" ) } } #=> true CSV ( "CSV,data" ) { |c| c.read.any? { |a| a.include?( "zombies" ) } } #=> false |
Please login to continue.