# File lib/core_ext/file.rb, line 15
  def self.absolute_path?(path, platform = :default)
    pattern = case platform
              when :default then ABSOLUTE_PATH_PATTERN
              when :windows then WINDOWS_ABSOLUTE_PATH_PATTERN
              when :posix   then POSIX_ABSOLUTE_PATH_PATTERN
              else raise ArgumentError, "Unsupported platform '#{platform.inspect}'"
              end

    false | path[pattern]
  end