Class: Grape::Router::MustermannPattern

Inherits:
Mustermann::AST::Pattern
  • Object
show all
Defined in:
lib/grape/router/mustermann_pattern.rb

Overview

Grape-style path patterns for Mustermann: :param, *splat, {name} / {+splat}, ( ) optionals, |, and an Integer digit-only constraint (driven by Grape's params option).

Inlined from the mustermann-grape gem (MIT) by namusyaka, Konstantin Haase and Daniel Doubrovkine. Grape instantiates this class directly (see Pattern), so unlike the gem it is not registered as a Mustermann type: :grape.