lib/cli.rb
# Checks if there are enough unused words and definitions to form question.
# Minumum size is set at 5 because sample method in #sample_words_defs
# is not called on first item in array.
Checks if there are enough unused words and definitions to form question.
Minumum size is set at 5 because sample method in #sample_words_defs
is not called on first item in array.
Checks if there are enough unused words and definitions to form question . Minumum size is set at 5 because sample method in #sample_words_defs is not called on first item in array .
def check_remaining
    if @words_defs_ary.size >= 5
      sample_words_defs
    else
      ask_c_or_e
    end
  end
def check_remaining if @words_defs_ary . size >= 5 sample_words_defs else ask_c_or_e end end
Checks if there are enough unused words and definitions to form question.
Checks if there are enough unused words and definitions to form question .