class Snowflakes::OverflowError
Public Class Methods
new(topic, current, maximum)
click to toggle source
Calls superclass method
# File lib/snowflakes.rb, line 3 def initialize(topic, current, maximum) formats = { topic: topic, current: current, maximum: maximum } if current < 0 super('Invalid %{topic} (${current} < 0)' % formats) else super('Invalid %{topic} (${current} > ${maximum})' % formats) end end