module GroupDocs::Api::Helpers::Path
Public Class Methods
included(klass)
click to toggle source
Make helper methods accessible as class methods as well
# File lib/groupdocs/api/helpers/path_helper.rb, line 9 def self.included(klass) klass.extend self end
Private Instance Methods
prepare_path(path)
click to toggle source
Prepares path. @param [String] path @return [String] @api private
# File lib/groupdocs/api/helpers/path_helper.rb, line 21 def prepare_path(path) path.sub(%r(^/), '').gsub(%r(//+), '/') end