Class: Calcifer::Finders::FilesDiffFinder
- Inherits:
-
Object
- Object
- Calcifer::Finders::FilesDiffFinder
- Defined in:
- lib/calcifer/finders/files_diff_finder.rb
Instance Attribute Summary collapse
-
#file_list ⇒ Object
readonly
Returns the value of attribute file_list.
Instance Method Summary collapse
Instance Attribute Details
#file_list ⇒ Object (readonly)
Returns the value of attribute file_list.
6 7 8 |
# File 'lib/calcifer/finders/files_diff_finder.rb', line 6 def file_list @file_list end |
Instance Method Details
#execute ⇒ Object
8 9 10 11 12 13 |
# File 'lib/calcifer/finders/files_diff_finder.rb', line 8 def execute @file_list = git_files.split.map(&lambda { |file_path| file = File.open(file_path) file if file.size.positive? && File.extname(file.path) == '.rb' }).compact end |