Sha256: 73d01b38a984747549d9717785b664bf0d16d6f9dc584ddc87155f9a19634554
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
module Exam # create a Examen class Examen attr_accessor :list def initialize(a) @list = a end def check_exam(a) list = @list.clone n = 0 for i in 0..a.size-1 p = list.popHead if (p.check_ans(a[i])) n = n+1 end end #puts "#{n}/#{a.size}" return "#{n}/#{a.size}" end def invertir @list=reverse(@list) end def size @list.size end def to_s @list.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exam_LPP_T_5-0.1.2 | lib/exam/examen.rb |