Class: SelectMultiple
Instance Attribute Summary collapse
-
#multiple ⇒ Object
Returns the value of attribute multiple.
Attributes inherited from Question
#answers, #name, #points, #question_comment, #question_group, #question_tags, #question_text, #randomize, #uid
Instance Method Summary collapse
-
#initialize(text = '', opts = {}) ⇒ SelectMultiple
constructor
A new instance of SelectMultiple.
Methods inherited from Question
#answer, #as_json, #comment, #correct_answer, #correct_answers, #distractor, #explanation, #group, #raw?, #tags, #text
Constructor Details
#initialize(text = '', opts = {}) ⇒ SelectMultiple
Returns a new instance of SelectMultiple.
5 6 7 8 9 |
# File 'lib/ruql/select_multiple.rb', line 5 def initialize(text='', opts={}) super self.question_text = text self.multiple = true end |
Instance Attribute Details
#multiple ⇒ Object
Returns the value of attribute multiple.
3 4 5 |
# File 'lib/ruql/select_multiple.rb', line 3 def multiple @multiple end |