Module: RTest::FileGetter

Defined in:
lib/rtest/file_getter.rb

Class Method Summary collapse

Class Method Details

.argsObject



14
15
16
# File 'lib/rtest/file_getter.rb', line 14

def self.args
  ARGV
end

.files_from_argsObject



6
7
8
9
10
11
12
# File 'lib/rtest/file_getter.rb', line 6

def self.files_from_args
  files = []
  args.each do |file_path|
    Find.find(file_path) { |path| files << path if File.file?(path) }
  end
  files
end