skip_blanks? -> bool
[permalink][rdoc][edit]-
真である場合は、空行を読み飛ばします。
require "csv" csv = CSV.new("header1,header2\n\nrow1_1,row1_2") csv.skip_blanks? # => false csv.read # => [["header1", "header2"], [], ["row1_1", "row1_2"]] csv = CSV.new("header1,header2\n\nrow1_1,row1_2", skip_blanks: true) csv.skip_blanks? # => true csv.read # => [["header1", "header2"], ["row1_1", "row1_2"]]
[SEE_ALSO] CSV.new