class EventCounter::CounterError
Default error class
Constants
- MESSAGES
Attributes
extra[RW]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/event_counter.rb, line 121 def initialize(*args) @msg, self.extra = args.flatten! super(@msg) end
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
# File lib/event_counter.rb, line 126 def to_s @msg.is_a?(Symbol) ? MESSAGES[@msg] % extra : super end