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