Class: TrueOrFalse

Inherits:
QuestionFather show all
Defined in:
lib/question/trueOrFalse/base.rb

Instance Attribute Summary

Attributes inherited from QuestionFather

#dif, #distractor, #right, #text

Instance Method Summary collapse

Methods inherited from QuestionFather

#<=>

Constructor Details

#initialize(args) ⇒ TrueOrFalse

Returns a new instance of TrueOrFalse.



4
5
6
# File 'lib/question/trueOrFalse/base.rb', line 4

def initialize(args)
  super
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/question/trueOrFalse/base.rb', line 7

def to_s
  "Responde \"true\" or \"false\" la siguiente pregunta #{@text} \n-True \n-False \n"
end