Eno::Loaders ยป #url
url โ string
url_items โ array
url_list โ array
Validates a URL and returns it unaltered (or raises an error for an invalid URL).
enogood: https://json.org
bad: www.boom
rubydocument = Eno.parse(input)
document.url('good') #=> 'https://json.org'
document.url('bad')
# raises an error: 'bad' must contain valid URL, for instance 'https://eno-lang.org'.