# 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