Class: Scrubyt::Logger::MultiLineMessage
- Defined in:
- lib/scrubyt/logging.rb
Instance Method Summary collapse
-
#initialize(level, lines) ⇒ MultiLineMessage
constructor
A new instance of MultiLineMessage.
- #to_s ⇒ Object
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_s ⇒ Object
48 49 50 |
# File 'lib/scrubyt/logging.rb', line 48 def to_s [ super, indented_lines ] * "\n" end |