ruby/ruby — pull request #161 by cschwartz (2012-08-20 12:01:08+00:00)
Title: Adds support for comment lines in csv files

Hi,

this patch adds support for comment lines (i.e. lines that are going to be skipped during parsing) to CSV.
The standard behaviour of the class does not change. However, if the option `:comment_marker => "#"` is added to the constructor, all lines beginning with the specified marker are skipped.
Behaviour during CSV writing remains unchanged.
I've added tests for this option in `test/csv/test_features.rb`, to demonstrate usage and expected behaviour.

If this commit does not live up to some code or quality guidelines, I'd be happy to do my best to improve it.

By the way, thanks for the great work on ruby.