Method: Answer#initialize
- Defined in:
- lib/quiz/answer.rb
#initialize(order, kind, answer) ⇒ Answer
order: the position of the answer in the question kind: either :right or :wrong answer: the text of the answer (for instance “1492”)
7 8 9 |
# File 'lib/quiz/answer.rb', line 7 def initialize(order, kind, answer) @kind, @order, @answer = kind, order, answer end |