Class: CaptainVocab::CLI
- Inherits:
-
Object
- Object
- CaptainVocab::CLI
- Defined in:
- lib/captain_vocab/cli.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
3 4 5 6 7 8 |
# File 'lib/captain_vocab/cli.rb', line 3 def call which_word? # check word # ask another word # goodbye end |
#which_word? ⇒ Boolean
10 11 12 13 14 15 |
# File 'lib/captain_vocab/cli.rb', line 10 def which_word? print "\nEnter the word you want defined: " dict = CaptainVocab::Scraper.new of_this_word = gets.chomp.to_s.downcase dict.get_definition(of_this_word) end |