Method: Wgit::Url#omit
- Defined in:
- lib/wgit/url.rb
#omit(*components) ⇒ Wgit::Url
Omits the given URL components from self and returns a new Wgit::Url.
Calls Addressable::URI#omit underneath and creates a new Wgit::Url from the output. See the Addressable::URI docs for more information.
583 584 585 586 |
# File 'lib/wgit/url.rb', line 583 def omit(*components) omitted = @uri.omit(*components) Wgit::Url.new(omitted.to_s) end |