Sha256: 8ebb4c520dc82e98517e851c18a667c625019facb9422caf5040c2a181364381

Contents?: true

Size: 206 Bytes

Versions: 10

Compression:

Stored size: 206 Bytes

Contents

require 'aruba/aruba_path'

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

Version data entries

10 entries across 10 versions & 1 rubygems

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