-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extra docs for CSV classes #102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
They are internal classes. So I don't want users to use them directly.
It's acceptable that we have documents for developers but I don't want to add documents for users. Any idea?
OK. Let's do so. How about adding "Don't use this class directly. This is an internal class." or something too? |
lib/csv/fields_converter.rb
Outdated
@@ -1,8 +1,14 @@ | |||
# frozen_string_literal: true | |||
|
|||
# Note: Don't use this class directly. This is an internal class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add this line before class FieldsConverter
instead of class CSV
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
lib/csv/parser.rb
Outdated
@@ -10,11 +10,32 @@ | |||
using CSV::DeleteSuffix if CSV.const_defined?(:DeleteSuffix) | |||
using CSV::MatchP if CSV.const_defined?(:MatchP) | |||
|
|||
# Note: Don't use this class directly. This is an internal class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks for the heads up 👍
lib/csv/writer.rb
Outdated
@@ -5,8 +5,13 @@ | |||
|
|||
using CSV::MatchP if CSV.const_defined?(:MatchP) | |||
|
|||
# Note: Don't use this class directly. This is an internal class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Thanks! |
Add docs for: