It's like Ruby URI
, but smaller. It provides minimal URI support that is absent from Opal.
Add this line to your application's Gemfile:
gem 'opal-uri'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bowser
Inside your Opal app:
require 'uri'
uri = URI.parse("http://opalrb.com")
uri.scheme #=> "http"
uri.host #=> "opalrb.com"
This project is governed by a Code of Conduct
- Fork it
- Branch it
- Hack it
- Save it
- Commit it
- Push it
- Pull-request it