Class: Foodie::CLI
- Inherits:
-
Thor
- Object
- Thor
- Foodie::CLI
- Defined in:
- lib/foodie/cli.rb
Instance Method Summary collapse
-
#pluralize ⇒ Object
Here there’s the new method_option method we use which defines, well, a method option.
- #portray(name) ⇒ Object
Instance Method Details
#pluralize ⇒ Object
Here there’s the new method_option method we use which defines, well, a method option. It takes a hash which indicates the details of an option how they should be returned to our task.
18 19 20 |
# File 'lib/foodie/cli.rb', line 18 def pluralize puts Foodie::Food.pluralize([:word]) end |