class Pathutil
def split_path
- Example: Pathutil.new("/my/path").split_path # => ["", "my", "path"] -
Other tags:
- Note: - The blank part is intentionally left there so that you can rejoin.
def split_path @path.split( %r!\\+|/+! ) end
def split_path @path.split( %r!\\+|/+! ) end