Class: Gem::Jruby::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/gem/jruby/cli.rb

Instance Method Summary collapse

Instance Method Details

#pluralizeObject



17
18
19
20
21
22
23
# File 'lib/gem/jruby/cli.rb', line 17

def pluralize
  puts Gem::Jruby::Food.pluralize(options[:word])

  # to understand the method_option: try below
  # bundle exec exe/food pluralize --word
  # bundle exec exe/food pluralize -w
end

#portray(name) ⇒ Object



10
11
12
13
# File 'lib/gem/jruby/cli.rb', line 10

def portray(name)
  puts Gem::Jruby::Food.portray(name)
  # can try to execute the CLI by: bundle exec exe/food portray broccoli
end