SinatraRouteMatcher

final class SinatraRouteMatcher(pattern: String) extends RouteMatcher with ReversibleRouteMatcher

An implementation of Sinatra's path pattern syntax.

class Object
trait Matchable
class Any

Type members

Classlikes

case class Builder(path: String, params: Map[String, String], splats: List[String])
object BuilderGeneratorParser extends RegexParsers

Value members

Concrete methods

def apply(requestPath: String): Option[MultiParams]
def reverse(params: Map[String, String], splats: List[String]): String

Generates a URI from a route matcher.

Generates a URI from a route matcher.

Value parameters:
params

a map of named params extractable by the route

splats

a list of splats extractable by the route

Returns:

a String that would match the route with the given params and splats

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

def apply(route: Route): Route
Inherited from:
RouteMatcher

Concrete fields