~

object ~

File extension extractor

class Object
trait Matchable
class Any

Value members

Methods

def unapply(path: Path): Option[(Path, String)]

File extension extractor for Path: Path("example.json") match { case Root / "example" ~ "json" => ...

def unapply(fileName: String): Option[(String, String)]

File extension matcher for String: {{{ "example.json" match { case => "example" ~ "json" => ... }}}