Class: Scrubyt::Logger::MultiLineMessage

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

Instance Method Summary collapse

Constructor Details

#initialize(level, lines) ⇒ MultiLineMessage

Returns a new instance of MultiLineMessage.



42
43
44
45
46
# File 'lib/scrubyt/logging.rb', line 42

def initialize(level, lines)
  super level, lines.shift

  @lines = lines
end

Instance Method Details

#to_sObject



48
49
50
# File 'lib/scrubyt/logging.rb', line 48

def to_s
  [ super, indented_lines ] * "\n"
end