Sha256: c06bcd771c8a767d4714f02b7b6005b989336ae40c42616517a99aceebb2edf9

Contents?: true

Size: 528 Bytes

Versions: 34

Compression:

Stored size: 528 Bytes

Contents

module GroupDocs
  module Api
    module Helpers
      module Path

        #
        # Make helper methods accessible as class methods as well
        #
        def self.included(klass)
          klass.extend self
        end

        private

        #
        # Prepares path.
        # @param [String] path
        # @return [String]
        # @api private
        #
        def prepare_path(path)
          path.sub(%r(^/), '').gsub(%r(//+), '/')
        end

      end # Path
    end # Helpers
  end # Api
end # GroupDocs

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
groupdocs-2.2.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-2.1.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-2.0.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.9.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.8.1 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.8.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.7.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.6.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.9 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.8 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.7 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.6 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.5 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.4 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.3 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.2 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.1 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.5.0 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.4.2 lib/groupdocs/api/helpers/path_helper.rb
groupdocs-1.4.1 lib/groupdocs/api/helpers/path_helper.rb