Class: Warder::CoffeeLintRunner::MessageFormatter
- Inherits:
-
Object
- Object
- Warder::CoffeeLintRunner::MessageFormatter
- Defined in:
- lib/warder/coffee_lint_runner/message_formatter.rb
Overview
responsible for human readable result of coffeelint validation
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(result) ⇒ MessageFormatter
constructor
A new instance of MessageFormatter.
Constructor Details
#initialize(result) ⇒ MessageFormatter
Returns a new instance of MessageFormatter.
8 9 10 |
# File 'lib/warder/coffee_lint_runner/message_formatter.rb', line 8 def initialize(result) @result = result end |
Instance Method Details
#format ⇒ Object
12 13 14 15 16 |
# File 'lib/warder/coffee_lint_runner/message_formatter.rb', line 12 def format @result.map do |result| MessageLineFormatter.new(result).format end.join("\n") end |