Sha256: 3d792b62d79cdd620df6f27a47537d1b15cd05adcf1f680bb3281e8155e36661

Contents?: true

Size: 314 Bytes

Versions: 34

Compression:

Stored size: 314 Bytes

Contents

# Copyright 2019 Grabtaxi Holdings PTE LTE (GRAB), All rights reserved.
# Use of this source code is governed by an MIT-style license that can be found in the LICENSE file

class PathUtils
  def self.remove_last_path_component(path, num_components = 1)
    path.split("/")[0...-num_components].join("/")
  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
cocoapods-binary-artifactory-cache-0.0.1 lib/cocoapods-binary-artifactory-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.14 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.13 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.12 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.11 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.10 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.9 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.8 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.7 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.6 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.5 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.3 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.2 lib/cocoapods-binary-cache/helper/path_utils.rb
cocoapods-binary-cache-0.1.1 lib/cocoapods-binary-cache/helper/path_utils.rb