module SourceFinder::PythonSourceFileGlobber

Globber for Python

Attributes

extra_python_files_arr[W]
python_dirs_arr[W]
python_file_extensions_arr[W]

Public Instance Methods

extra_python_files_arr() click to toggle source
# File lib/source_finder/langs/python.rb, line 11
def extra_python_files_arr
  @extra_python_files_arr ||= []
end
python_dirs_arr() click to toggle source
# File lib/source_finder/langs/python.rb, line 7
def python_dirs_arr
  @python_dirs_arr ||= %w(src tests)
end
python_file_extensions_arr() click to toggle source
# File lib/source_finder/langs/python.rb, line 15
def python_file_extensions_arr
  arr = @python_file_extensions_arr if defined? @python_file_extensions_arr
  make_extensions_arr(arr, %w(py))
end
python_file_extensions_glob() click to toggle source
# File lib/source_finder/langs/python.rb, line 20
def python_file_extensions_glob
  python_file_extensions_arr.join(',')
end
python_files_arr() click to toggle source
# File lib/source_finder/langs/python.rb, line 29
def python_files_arr
  exclude_garbage(@globber.glob(python_files_glob) - exclude_files_arr)
end
python_files_glob() click to toggle source
# File lib/source_finder/langs/python.rb, line 24
def python_files_glob
  make_files_glob(extra_python_files_arr, python_dirs_arr,
                  python_file_extensions_glob)
end