End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CSV::Parser#may_quoted?
may_quoted?
lib/csv/parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/csv/parser.rb, line 804
def may_quoted?
return false if @quote_character.nil?
if @input.is_a?(StringIO)
pos = @input.pos
sample = @input.read
@input.seek(pos)
else
return false if @samples.empty?
sample = @samples.first
end
sample[0, 128].index(@quote_character)
end
No documentation available