lib/cli.rb
# Samples starting at index 1 of array to avoid any column headings.
Samples starting at index 1 of array to avoid any column headings.
Samples starting at index 1 of array to avoid any column headings .
def sample_words_defs
    @question_words_defs = @words_defs_ary[1..@words_defs_ary.size - 1].sample(4)
    @words_defs_ary.delete_if { |wd| wd == @question_words_defs[0] }
    set_question_words
  end
def sample_words_defs @question_words_defs = @words_defs_ary [ 1 .. @words_defs_ary . size - 1 ] . sample ( 4 ) @words_defs_ary . delete_if { | wd | wd == @question_words_defs [ 0 ] } set_question_words end
Samples starting at index 1 of array to avoid any column headings.
Samples starting at index 1 of array to avoid any column headings .
# Prevents repetition of words in questions.