Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

CSV#skip_lines

csv.skip_lines → regexp or nil

Returns the Regexp used to identify comment lines; used for parsing; see Option skip_lines:

Example
CSV.new('').skip_lines # => nil
See also #skip_blanks? #stat #shift #to_i also in 3.3 · 3.2 · 3.0