Class: ZSS::Validate::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/zss/validate.rb

Class Method Summary collapse

Class Method Details

.is_valid_uri?(uri) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/zss/validate.rb', line 6

def self.is_valid_uri?(uri)
    !URI::parse(uri).relative?
rescue
  false
end