Sha256: f0916bcc60ef3ddc37927020bc191223ffb163816c2a6cdd8c73b1a365129a20

Contents?: true

Size: 363 Bytes

Versions: 10

Compression:

Stored size: 363 Bytes

Contents

require "aruba/platform"

# Aruba
module Aruba
  # Contracts
  module Contracts
    # Check if path is absolute
    class AbsolutePath
      # Check
      #
      # @param [Object] value
      #   The value to be checked
      def self.valid?(value)
        Aruba.platform.absolute_path? value
      rescue StandardError
        false
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/contracts/absolute_path.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/aruba-2.2.0/lib/aruba/contracts/absolute_path.rb
aruba-2.2.0 lib/aruba/contracts/absolute_path.rb
aruba-2.1.0 lib/aruba/contracts/absolute_path.rb
aruba-2.0.1 lib/aruba/contracts/absolute_path.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/aruba-2.0.0/lib/aruba/contracts/absolute_path.rb
aruba-2.0.0 lib/aruba/contracts/absolute_path.rb
aruba-1.1.2 lib/aruba/contracts/absolute_path.rb
aruba-1.1.1 lib/aruba/contracts/absolute_path.rb
aruba-1.1.0 lib/aruba/contracts/absolute_path.rb