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