Class: QnAMaker::Alteration
- Inherits:
-
Object
- Object
- QnAMaker::Alteration
- Defined in:
- lib/qna_maker/alteration.rb
Overview
Alteration class
Instance Attribute Summary collapse
-
#alterations ⇒ Object
readonly
Returns the value of attribute alterations.
-
#word ⇒ Object
readonly
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(word, alterations) ⇒ Alteration
constructor
Creates an object for alteration.
Constructor Details
#initialize(word, alterations) ⇒ Alteration
Creates an object for alteration.
19 20 21 22 |
# File 'lib/qna_maker/alteration.rb', line 19 def initialize(word, alterations) @word = word @alterations = alterations end |
Instance Attribute Details
#alterations ⇒ Object (readonly)
Returns the value of attribute alterations.
11 12 13 |
# File 'lib/qna_maker/alteration.rb', line 11 def alterations @alterations end |
#word ⇒ Object (readonly)
Returns the value of attribute word.
8 9 10 |
# File 'lib/qna_maker/alteration.rb', line 8 def word @word end |