Sha256: d47a64eb370fcb1cd76f9d12abc64a15e11807f770b070f8f8cfd164d03159d6

Contents?: true

Size: 267 Bytes

Versions: 32

Compression:

Stored size: 267 Bytes

Contents

# Helper class to perform tasks on URI's
class UriHelper
  # Returns an Addressable::URI with the fragment section removed
  def self.join_no_fragment(content, link)
    new_link = Addressable::URI.join(content, link)
    new_link.fragment=nil
    new_link
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
cobweb-1.0.11 lib/uri_helper.rb
cobweb-1.0.10 lib/uri_helper.rb
cobweb-1.0.9 lib/uri_helper.rb
cobweb-1.0.8 lib/uri_helper.rb
cobweb-1.0.6 lib/uri_helper.rb
cobweb-1.0.5 lib/uri_helper.rb
cobweb-1.0.4 lib/uri_helper.rb
cobweb-1.0.3 lib/uri_helper.rb
cobweb-1.0.2 lib/uri_helper.rb
cobweb-1.0.1 lib/uri_helper.rb
cobweb-1.0.0 lib/uri_helper.rb
cobweb-0.0.77 lib/uri_helper.rb
cobweb-0.0.76 lib/uri_helper.rb
cobweb-0.0.75 lib/uri_helper.rb
cobweb-0.0.74 lib/uri_helper.rb
cobweb-0.0.73 lib/uri_helper.rb
cobweb-0.0.72 lib/uri_helper.rb
cobweb-0.0.71 lib/uri_helper.rb
cobweb-0.0.70 lib/uri_helper.rb
cobweb-0.0.68 lib/uri_helper.rb