Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

BurdetteLamar
Copy link
Member

  • Added to section on custom argument converters.
  • Added introductory section.

@BurdetteLamar BurdetteLamar added the documentation Improvements or additions to documentation label Apr 11, 2021
Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Nice new examples. I was confused by the argument_converters.rdoc wording. It looks like it can get perfect in one more edit.

=== Custom Argument Converters

An argument converter has:

Copy link
Contributor

Choose a reason for hiding this comment

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

Now the initial sentence "fights with" the following sentences, I think. Perhaps you can drop/reformulate, so that this sentence is linked to the bullet-point list.

Copy link
Member Author

Choose a reason for hiding this comment

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

Now the initial sentence "fights with" the following sentences, I think. Perhaps you can drop/reformulate, so that this sentence is linked to the bullet-point list.

I have deleted 347-8, which I think fixes the problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 Shiny and clear! Thanks!

parser = OptionParser.new
parser.accept(:capitalize, /\w*/) do |value|
value.capitalize
end
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL! This is so great, thanks for adding this set of examples.

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

This explains converters, which is helpful! Thanks, @BurdetteLamar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants