Project

General

Profile

Bug #6880 ยป 0001-csv-nodoc-native-classes-Object-String-and-Array.patch

zzak (zzak _), 08/16/2012 05:37 AM

View differences:

lib/csv.rb
end
# Another name for CSV::instance().
def CSV(*args, &block)
def CSV(*args, &block) # :nodoc:
CSV.instance(*args, &block)
end
class Array
# Equivalent to <tt>CSV::generate_line(self, options)</tt>.
class Array # :nodoc:
# Equivalent to CSV::generate_line(self, options)
def to_csv(options = Hash.new)
CSV.generate_line(self, options)
end
end
class String
# Equivalent to <tt>CSV::parse_line(self, options)</tt>.
class String # :nodoc:
# Equivalent to CSV::parse_line(self, options)
def parse_csv(options = Hash.new)
CSV.parse_line(self, options)
end
    (1-1/1)