Class: Scrubyt::Logger::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/scrubyt/logging.rb

Direct Known Subclasses

MultiLineMessage

Instance Method Summary collapse

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_sObject



30
31
32
# File 'lib/scrubyt/logging.rb', line 30

def to_s
  prefix + @text
end