Class: Object (Ruby 2.3.4)

In Files

  • csv.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Object

Public Instance Methods

CSV(*args, &block)

Passes args to CSV.instance.

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.

CSV("CSV,data") { |c|
  c.read.any? { |a| a.include?("data") }
} #=> true

CSV("CSV,data") { |c|
  c.read.any? { |a| a.include?("zombies") }
} #=> false
 
               # File csv.rb, line 2327
def CSV(*args, &block)
  CSV.instance(*args, &block)
end