Class: WordsMatrix::Dictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/words_matrix/dictionary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min_length, max_length, dict_path) ⇒ Dictionary

Returns a new instance of Dictionary.



4
5
6
7
# File 'lib/words_matrix/dictionary.rb', line 4

def initialize(min_length, max_length, dict_path)
  @dict_path = dict_path
  @words = read_content(min_length, max_length)
end

Instance Attribute Details

#wordsObject (readonly)

Returns the value of attribute words.



2
3
4
# File 'lib/words_matrix/dictionary.rb', line 2

def words
  @words
end