Sha256: 4f8853f10341aaa853f61983feb8d416af59433ba2d4541b66184d0f523cb628

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

module Rake
  module Path
    def self.find_files(paths, extension)
      files = paths.reduce([]) do |memo, path|
        case
        when File.file?(path)
          files = FileList[path]
        when path.match(/[\*\?]/)
          files = FileList[path]
        else
          files = FileList[path + '/*.' + extension]
        end
        memo + files
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake-builder-0.10.1 lib/rake/path.rb
rake-builder-0.9.2 lib/rake/path.rb
rake-builder-0.9.1 lib/rake/path.rb
rake-builder-0.9.0 lib/rake/path.rb