lib/scrabble.rb in danno_scrabble-0.0.3 vs lib/scrabble.rb in danno_scrabble-0.0.4
- old
+ new
@@ -5,10 +5,10 @@
# @class Scrabble
# Useage: `ruby -Ilib ./bin/scrabble {'asdfjkl'}` or `ruby -Ilib ./bin/scrabble {'peodfor'}`
###
class Scrabble
###
- # @param [String] run a list of letters against a text dictionary file for valid scrabble answers.
+ # @param [String] letters are ran against a dictionary for valid scrabble answers.
# @return [Array] returns possible valid results.
###
def self.run_scrabble(letters)
dictionary_path = File.join( File.dirname(__FILE__), 'word_list.txt' )
dictionary = File.readlines(dictionary_path).map(&:chomp)