Class: TorFalse
Instance Attribute Summary collapse
-
#resp ⇒ Object
readonly
Returns the value of attribute resp.
Attributes inherited from Pregunta
Instance Method Summary collapse
-
#initialize(preg, dif) ⇒ TorFalse
constructor
A new instance of TorFalse.
- #to_s ⇒ Object
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
#resp ⇒ Object (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_s ⇒ Object
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 |