Method: MLS::CLI::Documents.partition

Defined in:
lib/mls/cli/documents.rb

.partition(value, depth: 5) ⇒ Object



6
7
8
9
# File 'lib/mls/cli/documents.rb', line 6

def self.partition(value, depth: 5)
  split = value.scan(/.{1,4}/)
  split.shift(depth).join("/") + split.join("")
end