Method: TexLogParser::FileLineError#read
- Defined in:
- lib/tex_log_parser/patterns/file_line_error.rb
#read(lines) ⇒ Array<(Message, Int)>
Reads a message from the given lines.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/tex_log_parser/patterns/file_line_error.rb', line 18 def read(lines) # @type [Message] msg msg, consumed = super(lines) msg.source_file = @start_match[1] line = @start_match[2].to_i msg.source_lines = { from: line, to: line } msg.preformatted = true msg.level = :error msg..gsub!(@start, '') [msg, consumed] end |