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
lib/csv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/csv.rb, line 2062
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