Class: Aruba::Contracts::RelativePath

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

Overview

Is value relative path

Class Method Summary collapse

Class Method Details

.valid?(value) ⇒ Boolean

Check

Parameters:

  • value (String)

    The path to be checked

Returns:

  • (Boolean)


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

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