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
lib/csv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/csv.rb, line 2063
def skip_lines
parser.skip_lines
end
Returns the Regexp used to identify comment lines; used for parsing; see Option skip_lines:
Example
CSV.new('').skip_lines # => nil