Class: Pronto::Punchlist::PunchlistDriver

Inherits:
Object
  • Object
show all
Defined in:
lib/pronto/punchlist/driver.rb

Overview

Adapts the Punchlist gem for use

Instance Method Summary collapse

Constructor Details

#initialize(punchlist_line_regexp, inspector_class: ::Punchlist::Inspector) ⇒ PunchlistDriver

Returns a new instance of PunchlistDriver.



10
11
12
13
14
# File 'lib/pronto/punchlist/driver.rb', line 10

def initialize(punchlist_line_regexp,
               inspector_class: ::Punchlist::Inspector)
  @punchlist_line_regexp = punchlist_line_regexp
  @inspector_class = inspector_class
end

Instance Method Details

#inspect_filename(path) ⇒ Object



16
17
18
# File 'lib/pronto/punchlist/driver.rb', line 16

def inspect_filename(path)
  @inspector_class.new(@punchlist_line_regexp, path).run
end