module SourceFinder::GroovySourceFileGlobber

Globber for JavaScript

Attributes

extra_groovy_files_arr[W]
groovy_dirs_arr[W]
groovy_file_extensions_arr[W]

Public Instance Methods

extra_groovy_files_arr() click to toggle source
# File lib/source_finder/langs/groovy.rb, line 11
def extra_groovy_files_arr
  @extra_groovy_files_arr ||= []
end
groovy_dirs_arr() click to toggle source
# 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() click to toggle source
# 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
groovy_file_extensions_glob() click to toggle source
# File lib/source_finder/langs/groovy.rb, line 20
def groovy_file_extensions_glob
  groovy_file_extensions_arr.join(',')
end
groovy_files_arr() click to toggle source
# 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() click to toggle source
# 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