Method: Textbringer::Ring#initialize

Defined in:
lib/textbringer/ring.rb

#initialize(max = 30, on_delete: ->(x) {}) ⇒ Ring

Returns a new instance of Ring.



5
6
7
8
9
10
# File 'lib/textbringer/ring.rb', line 5

def initialize(max = 30, on_delete: ->(x) {})
  @max = max
  @ring = []
  @current = -1
  @on_delete = on_delete
end