Method: CucumberLint::LintedFile#initialize

Defined in:
lib/cucumber_lint/linted_file.rb

#initialize(path) ⇒ LintedFile

Returns a new instance of LintedFile.



9
10
11
12
13
14
15
16
17
# File 'lib/cucumber_lint/linted_file.rb', line 9

def initialize path
  @path = Pathname.new path
  @content = IO.read path
  @lines = @content.lines

  @errors = []
  @fixes = {}
  @marked_for_deletion = false
end