Module: Guard::CoffeeScript::Inspector
- Defined in:
- lib/guard/coffeescript/inspector.rb
Overview
The inspector verifies of the changed paths are valid for Guard::CoffeeScript.
Class Method Summary collapse
-
.clean(paths, options = {}) ⇒ Array<String>
Clean the changed paths and return only valid CoffeeScript files.
Class Method Details
.clean(paths, options = {}) ⇒ Array<String>
Clean the changed paths and return only valid CoffeeScript files.
16 17 18 19 20 |
# File 'lib/guard/coffeescript/inspector.rb', line 16 def clean(paths, = {}) paths.uniq! paths.compact! paths.select { |p| coffee_file?(p, ) } end |