Module: SourceFinder::RubySourceFileGlobber
- Included in:
- SourceFileGlobber
- Defined in:
- lib/source_finder/langs/ruby.rb
Overview
Globber for Ruby
Instance Attribute Summary collapse
-
#extra_ruby_files_arr ⇒ Object
Returns the value of attribute extra_ruby_files_arr.
-
#ruby_dirs_arr ⇒ Object
Returns the value of attribute ruby_dirs_arr.
-
#ruby_file_extensions_arr ⇒ Object
Returns the value of attribute ruby_file_extensions_arr.
Instance Method Summary collapse
Instance Attribute Details
#extra_ruby_files_arr ⇒ Object
Returns the value of attribute extra_ruby_files_arr.
4 5 6 |
# File 'lib/source_finder/langs/ruby.rb', line 4 def extra_ruby_files_arr @extra_ruby_files_arr end |
#ruby_dirs_arr ⇒ Object
Returns the value of attribute ruby_dirs_arr.
4 5 6 |
# File 'lib/source_finder/langs/ruby.rb', line 4 def ruby_dirs_arr @ruby_dirs_arr end |
#ruby_file_extensions_arr ⇒ Object
Returns the value of attribute ruby_file_extensions_arr.
4 5 6 |
# File 'lib/source_finder/langs/ruby.rb', line 4 def ruby_file_extensions_arr @ruby_file_extensions_arr end |
Instance Method Details
#ruby_file_extensions_glob ⇒ Object
20 21 22 |
# File 'lib/source_finder/langs/ruby.rb', line 20 def ruby_file_extensions_glob ruby_file_extensions_arr.join(',') end |
#ruby_files_arr ⇒ Object
29 30 31 |
# File 'lib/source_finder/langs/ruby.rb', line 29 def ruby_files_arr exclude_garbage(@globber.glob(ruby_files_glob) - exclude_files_arr) end |
#ruby_files_glob ⇒ Object
24 25 26 27 |
# File 'lib/source_finder/langs/ruby.rb', line 24 def ruby_files_glob make_files_glob(extra_ruby_files_arr, ruby_dirs_arr, ruby_file_extensions_glob) end |