End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CSV#force_quotes?
csv.force_quotes? → true or false
lib/csv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/csv.rb, line 1962
def force_quotes?
@writer_options[:force_quotes]
end
Returns the value that determines whether all output fields are to be quoted; used for generating; see Option force_quotes:
Example
CSV.new('').force_quotes? # => false