Sha256: f892f0d98974a50a09e1c5d9b5fc99474686e186e601b0c6934e28bacbfdefc4

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 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

1 entries across 1 versions & 1 rubygems

Version Path
groupdocs-2.3.0 lib/groupdocs/api/helpers/path_helper.rb