Class: Scrubyt::Logger::Message
- Inherits:
-
Object
- Object
- Scrubyt::Logger::Message
- Defined in:
- lib/scrubyt/logging.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(level, text) ⇒ Message
constructor
A new instance of Message.
- #to_s ⇒ Object
Constructor Details
#initialize(level, text) ⇒ Message
Returns a new instance of Message.
26 27 28 |
# File 'lib/scrubyt/logging.rb', line 26 def initialize(level, text) @level, @text = level.to_s, text.to_s end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/scrubyt/logging.rb', line 30 def to_s prefix + @text end |