Class: LoggerBase Abstract
- Inherits:
-
Object
- Object
- LoggerBase
- Defined in:
- lib/debugtrace/loggers.rb
Overview
This class is abstract.
Base class for logger classes.
Direct Known Subclasses
Instance Method Summary collapse
- #print(message) ⇒ Object abstract
-
#to_s ⇒ String
Returns a string representation of this object.
Instance Method Details
#print(message) ⇒ Object
This method is abstract.
Outputs the message.
13 14 15 |
# File 'lib/debugtrace/loggers.rb', line 13 def print() raise Exception, 'LoggerBase.print is an abstract method.' end |
#to_s ⇒ String
Returns a string representation of this object.
19 20 21 |
# File 'lib/debugtrace/loggers.rb', line 19 def to_s return "#{self.class.name}" end |