Class: FillIn

Inherits:
Question show all
Defined in:
lib/ruql/fill_in.rb

Instance Attribute Summary collapse

Attributes inherited from Question

#answers, #name, #points, #question_comment, #question_group, #question_tags, #question_text, #randomize, #uid

Instance Method Summary collapse

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_sensitiveObject

Returns the value of attribute case_sensitive.



4
5
6
# File 'lib/ruql/fill_in.rb', line 4

def case_sensitive
  @case_sensitive
end

#orderObject

Returns the value of attribute order.



3
4
5
# File 'lib/ruql/fill_in.rb', line 3

def order
  @order
end

Instance Method Details

#multipleObject



13
# File 'lib/ruql/fill_in.rb', line 13

def multiple ; false ; end