class TrueFalse
Attributes
correct[RW]
feedback[RW]
value_failed[RW]
value_ok[RW]
Public Class Methods
new(type, id, question_text, correct, prop = Hash.new)
click to toggle source
Calls superclass method
Question::new
# File lib/quizzer.rb, line 85 def initialize(type, id, question_text, correct, prop = Hash.new) super(type, id, question_text) @correct = correct @value_ok = prop["value_ok"] || 1 @value_failed = prop["value_failed"] || -0.25 @feedback = prop["feedback"] || String.new end