Module: SourceFinder::GroovySourceFileGlobber
- Included in:
- SourceFileGlobber
- Defined in:
- lib/source_finder/langs/groovy.rb
Overview
Globber for JavaScript
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#extra_groovy_files_arr ⇒ Object
11 12 13 |
# File 'lib/source_finder/langs/groovy.rb', line 11 def extra_groovy_files_arr @extra_groovy_files_arr ||= [] end |
#groovy_dirs_arr ⇒ Object
7 8 9 |
# File 'lib/source_finder/langs/groovy.rb', line 7 def groovy_dirs_arr @groovy_dirs_arr ||= %w(app src vars www) end |
#groovy_file_extensions_arr ⇒ Object
15 16 17 18 |
# File 'lib/source_finder/langs/groovy.rb', line 15 def groovy_file_extensions_arr arr = @groovy_file_extensions_arr if defined? @groovy_file_extensions_arr make_extensions_arr(arr, %w(groovy)) end |
Instance Method Details
#groovy_file_extensions_glob ⇒ Object
20 21 22 |
# File 'lib/source_finder/langs/groovy.rb', line 20 def groovy_file_extensions_glob groovy_file_extensions_arr.join(',') end |
#groovy_files_arr ⇒ Object
29 30 31 |
# File 'lib/source_finder/langs/groovy.rb', line 29 def groovy_files_arr exclude_garbage(@globber.glob(groovy_files_glob) - exclude_files_arr) end |
#groovy_files_glob ⇒ Object
24 25 26 27 |
# File 'lib/source_finder/langs/groovy.rb', line 24 def groovy_files_glob make_files_glob(extra_groovy_files_arr, groovy_dirs_arr, groovy_file_extensions_glob) end |