Method: ShellHelpers::PathnameExt::Base#split_all

Defined in:
lib/shell_helpers/pathname.rb

#split_allObject

taken from facets/split_all



189
190
191
192
193
194
# File 'lib/shell_helpers/pathname.rb', line 189

def split_all
  head, tail = split
  return [tail] if head.to_s == '.' || tail.to_s == '/'
  return [head, tail] if head.to_s == '/'
  return head.split_all + [tail]
end