Sha256: 7a39391eaacaa60973ee131ca5296b9bf036d73dd19797a15c9165891c4aefa1

Contents?: true

Size: 206 Bytes

Versions: 14

Compression:

Stored size: 206 Bytes

Contents

require 'aruba/aruba_path'

module Aruba
  module Contracts
    class RelativePath
      def self.valid?(value)
        ArubaPath.new(value).relative?
      rescue
        false
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
aruba-0.11.0.pre lib/aruba/contracts/relative_path.rb
aruba-0.10.2 lib/aruba/contracts/relative_path.rb
aruba-0.10.1 lib/aruba/contracts/relative_path.rb
aruba-0.10.0 lib/aruba/contracts/relative_path.rb
aruba-0.10.0.pre2 lib/aruba/contracts/relative_path.rb
aruba-0.10.0.pre lib/aruba/contracts/relative_path.rb
aruba-0.9.0 lib/aruba/contracts/relative_path.rb
aruba-0.9.0.pre2 lib/aruba/contracts/relative_path.rb
aruba-0.9.0.pre lib/aruba/contracts/relative_path.rb
aruba-0.8.1 lib/aruba/contracts/relative_path.rb
aruba-0.8.0 lib/aruba/contracts/relative_path.rb
aruba-0.8.0.pre3 lib/aruba/contracts/relative_path.rb
aruba-0.8.0.pre2 lib/aruba/contracts/relative_path.rb
aruba-0.8.0.pre lib/aruba/contracts/relative_path.rb