Class: Aruba::Contracts::AbsolutePath
- Inherits:
- 
      Object
      
        - Object
- Aruba::Contracts::AbsolutePath
 
- Defined in:
- lib/aruba/contracts/absolute_path.rb
Overview
Check if path is absolute
Class Method Summary collapse
- 
  
    
      .valid?(value)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Check. 
Class Method Details
.valid?(value) ⇒ Boolean
Check
| 15 16 17 18 19 | # File 'lib/aruba/contracts/absolute_path.rb', line 15 def self.valid?(value) Aruba.platform.absolute_path? value rescue StandardError false end |