Class: LintTrap::Parser::Line
Overview
Handles parsing line by line with regex
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from LintTrap::Parser::Base
Instance Method Details
#parse ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/lint_trap/parser/line.rb', line 7 def parse io.each_line do |line| puts line if ENV['DEBUG_LINTING'] next unless (violation = parse_line(line)) yield violation end end |