Class: Verdadero_Falso
- Inherits:
-
SeleccionSimple
- Object
- SeleccionSimple
- Verdadero_Falso
- Defined in:
- lib/exam1/SeleccionSimple.rb
Instance Attribute Summary
Attributes inherited from SeleccionSimple
#nivel, #pregunta, #rescorr, #respuesta
Instance Method Summary collapse
-
#initialize(pregunta, nivel, rescorr) ⇒ Verdadero_Falso
constructor
A new instance of Verdadero_Falso.
- #to_s ⇒ Object
Methods inherited from SeleccionSimple
Constructor Details
#initialize(pregunta, nivel, rescorr) ⇒ Verdadero_Falso
Returns a new instance of Verdadero_Falso.
60 61 62 63 64 |
# File 'lib/exam1/SeleccionSimple.rb', line 60 def initialize(pregunta,nivel,rescorr) super(pregunta, ['Cierto','Falso'],nivel,rescorr) end |
Instance Method Details
#to_s ⇒ Object
66 67 68 69 70 |
# File 'lib/exam1/SeleccionSimple.rb', line 66 def to_s "#{@pregunta}\n a) Cierto\n b) Falso\n" end |