Sha256: 412fd4778420ad1ab458491d0374950889eded6a0fe52db2a7761109c08a33dd
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
require 'letter_press_is_not_as_good_as_boggle/word_list/node' class LetterPressIsNotAsGoodAsBoggle class WordList attr_reader :root def initialize(all_words=[]) @root = Node.new '' all_words.each { |word| self << word } end def <<(word) root.add word.chars.to_a self end def words root.words end end end
Version data entries
3 entries across 3 versions & 1 rubygems