class CaptainVocab::CLI

Public Instance Methods

call() click to toggle source
# File lib/captain_vocab/cli.rb, line 3
def call
    which_word?
    # check word
    # ask another word
    # goodbye
end
which_word?() click to toggle source
# 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