Class: TexLogParser::RunawayParameterError
- Inherits:
-
Object
- Object
- TexLogParser::RunawayParameterError
- Includes:
- LogParser::RegExpPattern
- Defined in:
- lib/tex_log_parser/patterns/runaway_parameter_error.rb
Overview
Matches messages of this form:
Runaway argument?
{Test. Also, it contains some \ref {warnings} and \ref {errors} for t\ETC.
Instance Method Summary collapse
-
#initialize ⇒ RunawayParameterError
constructor
Creates a new instance.
-
#read(lines) ⇒ Array<(Message, Int)>
Reads a message from the given lines.
Methods included from LogParser::RegExpPattern
Methods included from LogParser::Pattern
Constructor Details
permalink #initialize ⇒ RunawayParameterError
Creates a new instance.
12 13 14 15 16 |
# File 'lib/tex_log_parser/patterns/runaway_parameter_error.rb', line 12 def initialize super(/^Runaway argument\?/, { pattern: ->(_) { /./ }, until: :match, inclusive: true } ) end |
Instance Method Details
permalink #read(lines) ⇒ Array<(Message, Int)>
Reads a message from the given lines.
19 20 21 22 23 24 25 26 |
# File 'lib/tex_log_parser/patterns/runaway_parameter_error.rb', line 19 def read(lines) # @type [Message] msg msg, consumed = super(lines) msg.level = :error [msg, consumed] end |