Method: JSONSchemer::Format.valid_uri?
- Defined in:
- lib/json_schemer/format.rb
.valid_uri?(data) ⇒ Boolean
119 120 121 122 123 |
# File 'lib/json_schemer/format.rb', line 119 def valid_uri?(data) !!parse_uri_scheme(data) rescue ::URI::InvalidURIError false end |