Sha256: cccb553eba74ea531f1dd6843ae6c4635e19c0ccbe878f1096825bc84eefe4ae

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

require 'aruba/platform'

# Aruba
module Aruba
  # Contracts
  module Contracts
    # Is value relative path
    class RelativePath
      # Check
      #
      # @param [String] value
      #   The path to be checked
      def self.valid?(value)
        Aruba.platform.relative_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/relative_path.rb
aruba-1.0.3 lib/aruba/contracts/relative_path.rb
aruba-1.0.2 lib/aruba/contracts/relative_path.rb
aruba-1.0.1 lib/aruba/contracts/relative_path.rb