lib/montrose/rule/total.rb in montrose-0.6.0 vs lib/montrose/rule/total.rb in montrose-0.7.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
module Montrose
module Rule
class Total
include Montrose::Rule
@@ -10,19 +11,19 @@
def initialize(max)
@max = max
@count = 0
end
- def include?(_time)
- continue?
+ def include?(time)
+ continue?(time)
end
- def advance!(_time)
+ def advance!(time)
@count += 1
- continue?
+ continue?(time)
end
- def continue?
+ def continue?(_time)
@count <= @max
end
end
end
end