Class: Object (Ruby 2.7.3)
Description: Class : Object - Ruby 2.7.3

### Home Classes Methods

### In Files

- csv.rb

### Parent

BasicObject

### Methods

- #CSV

### Class/Module Index

Quicksearch

- CSV
- CSV::DeleteSuffix
- CSV::FieldsConverter
- CSV::MalformedCSVError
- CSV::MatchP
- CSV::Parser
- CSV::Parser::InputsScanner
- CSV::Parser::InvalidEncoding
- CSV::Parser::Scanner
- CSV::Parser::UnoptimizedStringIO
- CSV::Row
- CSV::Table
- CSV::Writer
- Object

No matching classes.

# Object

### Public Instance Methods

CSV(*args, &block) click to toggle source

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 1507
    def CSV(*args, &block)
      CSV.instance(*args, &block)
    end