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.14 lib/aruba/contracts/relative_path.rb
aruba-0.14.13 lib/aruba/contracts/relative_path.rb
aruba-1.0.0.pre.alpha.5 lib/aruba/contracts/relative_path.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/contracts/relative_path.rb
aruba-0.14.12 lib/aruba/contracts/relative_path.rb
aruba-0.14.11 lib/aruba/contracts/relative_path.rb
aruba-0.14.10 lib/aruba/contracts/relative_path.rb
aruba-1.0.0.pre.alpha.4 lib/aruba/contracts/relative_path.rb
aruba-1.0.0.pre.alpha.3 lib/aruba/contracts/relative_path.rb
aruba-0.14.9 lib/aruba/contracts/relative_path.rb
aruba-0.14.8 lib/aruba/contracts/relative_path.rb
aruba-0.14.7 lib/aruba/contracts/relative_path.rb
aruba-0.14.6 lib/aruba/contracts/relative_path.rb
aruba-0.14.5 lib/aruba/contracts/relative_path.rb
aruba-0.14.4 lib/aruba/contracts/relative_path.rb
aruba-0.14.3 lib/aruba/contracts/relative_path.rb
aruba-1.0.0.pre.alpha.2 lib/aruba/contracts/relative_path.rb
aruba-1.0.0.pre.alpha.1 lib/aruba/contracts/relative_path.rb
aruba-win-fix-0.14.2 lib/aruba/contracts/relative_path.rb
aruba-0.14.2 lib/aruba/contracts/relative_path.rb