Exception: Watchdog::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Watchdog::Error
- Defined in:
- lib/watchdog/error.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(meth, from, to) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(meth, from, to) ⇒ Error
Returns a new instance of Error.
3 4 5 6 |
# File 'lib/watchdog/error.rb', line 3 def initialize(meth, from, to) mtype = to.is_a?(Module) ? '#' : '.' super self.class::MESSAGE % [from, "#{to}#{mtype}#{meth}"] end |