-
Notifications
You must be signed in to change notification settings - Fork 24
More on tutorial #19
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
More on tutorial #19
Conversation
BurdetteLamar
commented
Apr 11, 2021
- Added to section on custom argument converters.
- Added introductory section.
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.
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: | ||
|
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.
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.
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.
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.
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.
👍 Shiny and clear! Thanks!
parser = OptionParser.new | ||
parser.accept(:capitalize, /\w*/) do |value| | ||
value.capitalize | ||
end |
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.
TIL! This is so great, thanks for adding this set of examples.
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.
This explains converters, which is helpful! Thanks, @BurdetteLamar!