search for: keep_score

Displaying 1 result from an estimated 1 matches for "keep_score".

2006 Apr 06
0
Class definition OK?
...s those values as @session.something. Right? For some reason I''m just getting zero for @question_total and errors for @point_total... class Test_session attr_reader :point_total attr_reader :question_total def initialize @point_total = 0 @question_total = 0 end def keep_score(points) @question_total += @question_total @point_total = @point_total + points end end -- Posted via http://www.ruby-forum.com/.