Class: File

Inherits:
Object show all
Defined in:
lib/dynamic_assets/core_extensions.rb

Class Method Summary collapse

Class Method Details

.find_existing(paths) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/dynamic_assets/core_extensions.rb', line 33

def self.find_existing(paths)
  paths.each do |path|
    return path if File.exists? path
  end

  nil
end