Class: Pronto::Punchlist::PunchlistDriver
- Inherits:
-
Object
- Object
- Pronto::Punchlist::PunchlistDriver
- Defined in:
- lib/pronto/punchlist/driver.rb
Overview
Adapts the Punchlist gem for use
Instance Method Summary collapse
-
#initialize(punchlist_line_regexp, inspector_class: ::Punchlist::Inspector) ⇒ PunchlistDriver
constructor
A new instance of PunchlistDriver.
- #inspect_filename(path) ⇒ Object
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 |