Sha256: 91369801d493a2a60b4ec4b79e05727ba4c63fe354aadb96ad1a637d40767ed1

Contents?: true

Size: 342 Bytes

Versions: 29

Compression:

Stored size: 342 Bytes

Contents

require 'aruba/aruba_path'

# 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)
        ArubaPath.new(value).relative?
      rescue
        false
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
aruba-0.14.1 lib/aruba/contracts/relative_path.rb
aruba-0.14.0 lib/aruba/contracts/relative_path.rb
aruba-0.13.0 lib/aruba/contracts/relative_path.rb
aruba-0.12.0 lib/aruba/contracts/relative_path.rb
aruba-0.11.2 lib/aruba/contracts/relative_path.rb
aruba-0.11.1 lib/aruba/contracts/relative_path.rb
aruba-0.11.0.pre4 lib/aruba/contracts/relative_path.rb
aruba-0.11.0.pre3 lib/aruba/contracts/relative_path.rb
aruba-0.11.0.pre2 lib/aruba/contracts/relative_path.rb