Top Level Namespace
Defined Under Namespace
Modules: RubySL Classes: Array, CSV, String
Instance Method Summary collapse
-
#CSV(*args, &block) ⇒ Object
Passes
args
to CSV::instance.
Instance Method Details
#CSV(*args, &block) ⇒ Object
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
2294 2295 2296 |
# File 'lib/rubysl/csv/csv.rb', line 2294 def CSV(*args, &block) CSV.instance(*args, &block) end |