Class: TorFalse

Inherits:
Pregunta show all
Defined in:
lib/simpleselect/tof.rb

Instance Attribute Summary collapse

Attributes inherited from Pregunta

#dif, #preg

Instance Method Summary collapse

Methods inherited from Pregunta

#<=>

Constructor Details

#initialize(preg, dif) ⇒ TorFalse

Returns a new instance of TorFalse.



5
6
7
8
# File 'lib/simpleselect/tof.rb', line 5

def initialize (preg, dif)
    super(preg, dif)
    @resp = ["a) Verdadero", "b)falso"]
end

Instance Attribute Details

#respObject (readonly)

Returns the value of attribute resp.



4
5
6
# File 'lib/simpleselect/tof.rb', line 4

def resp
  @resp
end

Instance Method Details

#to_sObject



9
10
11
12
# File 'lib/simpleselect/tof.rb', line 9

def to_s 
    aux = super.to_s + "a) Verdadero\nb)falso\n"
    aux
end