class BracketGraph::LoserGraph::IdGenerator
Attributes
current[R]
Public Class Methods
new(starting_id = 0)
click to toggle source
# File lib/bracket_graph/loser_graph.rb, line 8 def initialize starting_id = 0 @current = starting_id end
Public Instance Methods
next()
click to toggle source
# File lib/bracket_graph/loser_graph.rb, line 12 def next @current += 1 end