lib/reek/source/source_locator.rb in reek-1.2.7.2 vs lib/reek/source/source_locator.rb in reek-1.2.7.3

- old
+ new

@@ -1,16 +1,22 @@ require File.join(File.dirname(File.expand_path(__FILE__)), 'core_extras') module Reek module Source + + # + # Finds Ruby source files in a filesystem. + # class SourceLocator def initialize(paths) @paths = paths end def all_sources valid_paths.map {|path| File.new(path).to_reek_source } end + + private def all_ruby_source_files(paths) paths.map do |path| if test 'd', path all_ruby_source_files(Dir["#{path}/**/*.rb"])