Class: Aruba::Contracts::AbsolutePath

Inherits:
Object
  • Object
show all
Defined in:
lib/aruba/contracts/absolute_path.rb

Overview

Check if path is absolute

Class Method Summary collapse

Class Method Details

.valid?(value) ⇒ Boolean

Check



13
14
15
16
17
# File 'lib/aruba/contracts/absolute_path.rb', line 13

def self.valid?(value)
  Aruba.platform.absolute_path? value
rescue StandardError
  false
end