Module: SourceFinder::JsSourceFileGlobber
- Included in:
- SourceFileGlobber
- Defined in:
- lib/source_finder/langs/js.rb
Overview
Globber for JavaScript
Instance Attribute Summary collapse
-
#extra_js_files_arr ⇒ Object
Returns the value of attribute extra_js_files_arr.
-
#js_dirs_arr ⇒ Object
Returns the value of attribute js_dirs_arr.
-
#js_file_extensions_arr ⇒ Object
Returns the value of attribute js_file_extensions_arr.
Instance Method Summary collapse
Instance Attribute Details
#extra_js_files_arr ⇒ Object
Returns the value of attribute extra_js_files_arr.
4 5 6 |
# File 'lib/source_finder/langs/js.rb', line 4 def extra_js_files_arr @extra_js_files_arr end |
#js_dirs_arr ⇒ Object
Returns the value of attribute js_dirs_arr.
4 5 6 |
# File 'lib/source_finder/langs/js.rb', line 4 def js_dirs_arr @js_dirs_arr end |
#js_file_extensions_arr ⇒ Object
Returns the value of attribute js_file_extensions_arr.
4 5 6 |
# File 'lib/source_finder/langs/js.rb', line 4 def js_file_extensions_arr @js_file_extensions_arr end |
Instance Method Details
#js_file_extensions_glob ⇒ Object
20 21 22 |
# File 'lib/source_finder/langs/js.rb', line 20 def js_file_extensions_glob js_file_extensions_arr.join(',') end |
#js_files_arr ⇒ Object
29 30 31 |
# File 'lib/source_finder/langs/js.rb', line 29 def js_files_arr exclude_garbage(@globber.glob(js_files_glob) - exclude_files_arr) end |
#js_files_glob ⇒ Object
24 25 26 27 |
# File 'lib/source_finder/langs/js.rb', line 24 def js_files_glob make_files_glob(extra_js_files_arr, js_dirs_arr, js_file_extensions_glob) end |