class TorFalse

Attributes

resp[R]

Public Class Methods

new(preg, dif) click to toggle source
Calls superclass method Pregunta::new
# File lib/simpleselect/tof.rb, line 5
def initialize (preg, dif)
    super(preg, dif)
    @resp = ["a) Verdadero", "b)falso"]
end

Public Instance Methods

to_s() click to toggle source
Calls superclass method Pregunta#to_s
# File lib/simpleselect/tof.rb, line 9
def to_s 
    aux = super.to_s + "a) Verdadero\nb)falso\n"
    aux
end