Module: Guard::Ecukes::Inspector
- Defined in:
- lib/guard/ecukes/inspector.rb
Overview
The inspector verifies of the changed paths are valid for Guard::Ecukes.
Class Method Summary collapse
-
.clean(paths) ⇒ Array<String>
Clean the changed paths and return only valid Ecukes features.
Class Method Details
.clean(paths) ⇒ Array<String>
Clean the changed paths and return only valid Ecukes features.
16 17 18 19 20 21 22 23 |
# File 'lib/guard/ecukes/inspector.rb', line 16 def clean(paths) paths.uniq! paths.compact! paths = paths.select { |p| ecukes_file?(p) || ecukes_folder?(p) } paths = paths.delete_if { |p| included_in_other_path?(p, paths) } clear_ecukes_files_list paths end |