Class: WordsMatrix::Dictionary
- Inherits:
-
Object
- Object
- WordsMatrix::Dictionary
- Defined in:
- lib/words_matrix/dictionary.rb
Instance Attribute Summary collapse
-
#words ⇒ Object
readonly
Returns the value of attribute words.
Instance Method Summary collapse
-
#initialize(min_length, max_length, dict_path) ⇒ Dictionary
constructor
A new instance of Dictionary.
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
#words ⇒ Object (readonly)
Returns the value of attribute words.
2 3 4 |
# File 'lib/words_matrix/dictionary.rb', line 2 def words @words end |