Path

object Path

Constructs and deconstructs Path values.

Companion:
class
class Object
trait Matchable
class Any
Path.type

Value members

Concrete methods

def apply(path: String): Path

Constructs a new path using the given path string.

Constructs a new path using the given path string.

Path construction entails removal of extraneous / characters, including those at the end of path so long as path itself is not equivalent to "/".

Value parameters:
path

the path string

Returns:

a new path with the given path string

Used in pattern matching to deconstruct a path.

Used in pattern matching to deconstruct a path.

Value parameters:
path

selector value

Returns:

a Some containing the parts of path or None if path is null