Class: SelectMultiple
- Inherits:
-
MultipleChoice
- Object
- Question
- MultipleChoice
- SelectMultiple
- Defined in:
- lib/ruql/select_multiple.rb
Instance Attribute Summary
Attributes inherited from MultipleChoice
Attributes inherited from Question
#answers, #name, #points, #question_comment, #question_tags, #question_text, #randomize, #raw
Instance Method Summary collapse
-
#initialize(text = '', opts = {}) ⇒ SelectMultiple
constructor
A new instance of SelectMultiple.
Methods inherited from Question
#answer, #answer_helper, #comment, #correct_answer, #correct_answers, #distractor, #explanation, from_JSON, #raw?, #tags, #text, #to_JSON
Constructor Details
#initialize(text = '', opts = {}) ⇒ SelectMultiple
Returns a new instance of SelectMultiple.
2 3 4 5 |
# File 'lib/ruql/select_multiple.rb', line 2 def initialize(text='', opts={}) super self.multiple = true end |