Class: LintTrap::Parser::Line

Inherits:
Base
  • Object
show all
Defined in:
lib/lint_trap/parser/line.rb

Overview

Handles parsing line by line with regex

Direct Known Subclasses

CSSLint, Standard, VimQuickfix

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LintTrap::Parser::Base

Instance Method Details

#parseObject



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