Methods
A
N
Class Public methods
new(start_state, max_counter)
# File benchmark/bm_so_object.rb, line 23
def initialize(start_state, max_counter)
    super start_state
    @count_max = max_counter
    @counter = 0
end
Instance Public methods
activate()
# File benchmark/bm_so_object.rb, line 29
def activate
    @counter += 1
    if @counter >= @count_max
        @bool = !@bool
        @counter = 0
    end
    self
end