Class: Exam::ToF
Overview
create ToF that inherits Test
Instance Attribute Summary
Attributes inherited from Test
#correcta, #nivel, #pregunta, #respuestas
Instance Method Summary collapse
-
#initialize(preguntas, correcta, nivel = nil) ⇒ ToF
constructor
A new instance of ToF.
Methods inherited from Test
#<=>, #==, #check_ans, #to_s
Constructor Details
#initialize(preguntas, correcta, nivel = nil) ⇒ ToF
Returns a new instance of ToF.
5 6 7 |
# File 'lib/exam/tof.rb', line 5 def initialize (preguntas, correcta, nivel=nil) super(preguntas,correcta, ["V","F"], nivel) end |