Sha256: 19337a649a2432b4d57bb8679695471f7c8593e72e3428aa5664da2356832f48

Contents?: true

Size: 235 Bytes

Versions: 8

Compression:

Stored size: 235 Bytes

Contents

# frozen_string_literal: true

module Gupshup
  module REST
    def url_join(left, right)
      left = left.sub(/\/+$/, '').sub(/^\/+/, '')
      right = right.sub(/\/+$/, '').sub(/^\/+/, '')
      "#{left}/#{right}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gupshup-rb-0.2.1 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.2.0 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.1.9 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.1.8.4 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.1.8.3 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.1.8.2 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.1.8.1 lib/gupshup-rb/framework/rest/helper.rb
gupshup-rb-0.1.8 lib/gupshup-rb/framework/rest/helper.rb