Sha256: e95519556f4795770d0bbe3ea902f79be09b2769749a1ec0a2e5a6e104a8079f

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

require 'aruba/platform'

# Aruba
module Aruba
  # Contracts
  module Contracts
    # Check if path is absolute
    class AbsolutePath
      # Check
      #
      # @param [Object] value
      #   The value to be checked
      def self.valid?(value)
        Aruba.platform.absolute_path? value
      rescue StandardError
        false
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aruba-1.0.4 lib/aruba/contracts/absolute_path.rb
aruba-1.0.3 lib/aruba/contracts/absolute_path.rb
aruba-1.0.2 lib/aruba/contracts/absolute_path.rb
aruba-1.0.1 lib/aruba/contracts/absolute_path.rb