aboutsummaryrefslogtreecommitdiff
blob: 95e7186c640c6e0c192cd1b902bc77864d97c5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class MultipleChoiceAnswer < Answer
  def options
    if @options.nil?
      @options          = RichTypes::CheckList.new(question.content.options)
      @options.options  = content.to_s
    end
    @options
  end

  def options=(what)
    self.options
    @options.options = what
    self.content = @options.to_s
  end
end