class File

Public Class Methods

exist_first?(*candidates) click to toggle source

Returns the first match of the given files

# File lib/cem/ccommon.rb, line 39
def self.exist_first?(*candidates)
  candidates.each { |candidate|
    if File.exist?(candidate)
      return candidate
    end
  }
  return nil
end