Skip to content

Enhanced RDoc for several methods#158

Merged
kou merged 2 commits intoruby:masterfrom
BurdetteLamar:rdoc
Jul 20, 2020
Merged

Enhanced RDoc for several methods#158
kou merged 2 commits intoruby:masterfrom
BurdetteLamar:rdoc

Conversation

@BurdetteLamar
Copy link
Member

Methods:

  • each
  • read
  • header_row?
  • shift
  • inspect


# :call-seq:
# read
# csv.read -> array or csv_table
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about splitting each pattern?

Suggested change
# csv.read -> array or csv_table
# csv.read -> array
# csv.read -> csv_table (CSV::Table is better?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I have here is what I see in the doc for such as Hash and Array. People have been careful to use something (csv_table) that is English, not code. I once wrote foo.to_h -> Hash, and had someone point out that it's somewhat ambiguous: class Hash or instance of Hash?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see.

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@kou kou merged commit 72e8b00 into ruby:master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants