Class: Progression
- Inherits:
-
Object
- Object
- Progression
- Defined in:
- lib/progression.rb,
lib/progression/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
-
#initialize(count, current = 0) ⇒ Progression
constructor
Accept proc, tick.
- #tick ⇒ Object
Constructor Details
#initialize(count, current = 0) ⇒ Progression
Accept proc, tick
6 7 8 9 10 |
# File 'lib/progression.rb', line 6 def initialize(count, current = 0) @count = count @current = current @current_inner_tick = 0 end |
Instance Method Details
#tick ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/progression.rb', line 12 def tick ticks_per_bump = Calculator.ticks_per_bump(window_size, count) if ticks_per_bump > 1 (ticks_per_bump) else (ticks_per_bump) end end |