Sha256: 90e84042807b454212bcb5faf1e03e0ba8c32581aaaf3596d680949e41cdc6a3

Contents?: true

Size: 202 Bytes

Versions: 24

Compression:

Stored size: 202 Bytes

Contents

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc5 lib/twilio-ruby/framework/helper.rb
twilio-ruby-5.0.0.rc4 lib/twilio-ruby/framework/helper.rb
twilio-ruby-5.0.0.rc3 lib/twilio-ruby/framework/helper.rb
twilio-ruby-5.0.0.rc2 lib/twilio-ruby/framework/helper.rb