Class: Exam::ToF

Inherits:
Test
  • Object
show all
Defined in:
lib/exam/tof.rb

Overview

create ToF that inherits Test

Instance Attribute Summary

Attributes inherited from Test

#correcta, #nivel, #pregunta, #respuestas

Instance Method Summary collapse

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