object ~

File extension extractor

Source
Path.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ~
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    File extension matcher for String:

    File extension matcher for String:

    "example.json" match {
       case => "example" ~ "json" => ...
  2. def unapply(path: Path): Option[(Path, String)]

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