Class: Torkify::Vim::ErrorSplitter
- Inherits:
-
Object
- Object
- Torkify::Vim::ErrorSplitter
- Defined in:
- lib/torkify/vim/error_splitter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.delimiter ⇒ Object
6 7 8 |
# File 'lib/torkify/vim/error_splitter.rb', line 6 def self.delimiter "================" end |
Instance Method Details
#call(error) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/torkify/vim/error_splitter.rb', line 10 def call(error) split_text = error.text.split("\n") split_text.map { |text| Torkify::Log::TestError.new(error.filename, error.lnum, text, error.type) } << Torkify::Log::TestError.new(error.filename, error.lnum, self.class.delimiter, error.type) end |