Module: SourceFinder::PythonSourceFileGlobber
- Included in:
- SourceFileGlobber
- Defined in:
- lib/source_finder/langs/python.rb
Overview
Globber for Python
Instance Attribute Summary collapse
-
#extra_python_files_arr ⇒ Object
Returns the value of attribute extra_python_files_arr.
-
#python_dirs_arr ⇒ Object
Returns the value of attribute python_dirs_arr.
-
#python_file_extensions_arr ⇒ Object
Returns the value of attribute python_file_extensions_arr.
Instance Method Summary collapse
Instance Attribute Details
#extra_python_files_arr ⇒ Object
Returns the value of attribute extra_python_files_arr.
4 5 6 |
# File 'lib/source_finder/langs/python.rb', line 4 def extra_python_files_arr @extra_python_files_arr end |
#python_dirs_arr ⇒ Object
Returns the value of attribute python_dirs_arr.
4 5 6 |
# File 'lib/source_finder/langs/python.rb', line 4 def python_dirs_arr @python_dirs_arr end |
#python_file_extensions_arr ⇒ Object
Returns the value of attribute python_file_extensions_arr.
4 5 6 |
# File 'lib/source_finder/langs/python.rb', line 4 def python_file_extensions_arr @python_file_extensions_arr end |
Instance Method Details
#python_file_extensions_glob ⇒ Object
20 21 22 |
# File 'lib/source_finder/langs/python.rb', line 20 def python_file_extensions_glob @python_file_extensions_glob || python_file_extensions_arr.join(',') end |
#python_files_arr ⇒ Object
29 30 31 |
# 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 ⇒ Object
24 25 26 27 |
# 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 |