Class: Calcifer::Finders::FilesDiffFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/calcifer/finders/files_diff_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#file_listObject (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

#executeObject



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