search for: test_session

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

Did you mean: reset_session
2006 Apr 06
0
Class definition OK?
...values, i think) accessible as @class.something attributes outside of the class. So, once I find the right session in the controller, I can access 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/.