Class: Verdadero_Falso

Inherits:
SeleccionSimple show all
Defined in:
lib/exam1/SeleccionSimple.rb

Instance Attribute Summary

Attributes inherited from SeleccionSimple

#nivel, #pregunta, #rescorr, #respuesta

Instance Method Summary collapse

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_sObject



66
67
68
69
70
# File 'lib/exam1/SeleccionSimple.rb', line 66

def to_s

	"#{@pregunta}\n a) Cierto\n b) Falso\n"

end