Class: TrueOrFalse
- Inherits:
-
QuestionFather
- Object
- QuestionFather
- TrueOrFalse
- Defined in:
- lib/question/trueOrFalse/base.rb
Instance Attribute Summary
Attributes inherited from QuestionFather
#dif, #distractor, #right, #text
Instance Method Summary (collapse)
-
- (TrueOrFalse) initialize(args)
constructor
A new instance of TrueOrFalse.
- - (Object) to_s
Methods inherited from QuestionFather
Constructor Details
- (TrueOrFalse) initialize(args)
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
- (Object) to_s
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 |