Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2 · 3.1 · 3.0