Class: Crazipsum::Dictionnary
- Inherits:
-
Object
- Object
- Crazipsum::Dictionnary
- Defined in:
- lib/crazipsum/dictionnary.rb
Overview
Dictionnary is a simple struct with a #words and #fillers read-only attributes. It is used to initialize the Generator instance.
Instance Attribute Summary collapse
-
#fillers ⇒ Object
readonly
Returns the value of attribute fillers.
-
#words ⇒ Object
readonly
Returns the value of attribute words.
Instance Method Summary collapse
-
#initialize(words, fillers: []) ⇒ Dictionnary
constructor
A new instance of Dictionnary.
Constructor Details
#initialize(words, fillers: []) ⇒ Dictionnary
Returns a new instance of Dictionnary.
10 11 12 13 |
# File 'lib/crazipsum/dictionnary.rb', line 10 def initialize(words, fillers: []) @words = words @fillers = fillers end |
Instance Attribute Details
#fillers ⇒ Object (readonly)
Returns the value of attribute fillers.
8 9 10 |
# File 'lib/crazipsum/dictionnary.rb', line 8 def fillers @fillers end |
#words ⇒ Object (readonly)
Returns the value of attribute words.
8 9 10 |
# File 'lib/crazipsum/dictionnary.rb', line 8 def words @words end |