# mustermann-grape **Repository Path**: mirrors_dblock/mustermann-grape ## Basic Information - **Project Name**: mustermann-grape - **Description**: Implements the grape pattern type for Mustermann. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Grape Syntax for Mustermann This gem implements the `grape` pattern type for Mustermann. [](https://travis-ci.org/ruby-grape/mustermann-grape) ## Overview **Supported options:** `capture`, `except`, `greedy`, `space_matches_plus`, `uri_decode`, `converters` and `ignore_unknown_options` ``` ruby require 'mustermann/grape' Mustermann.new('/:id', type: :grape).params('/foo') # => { id: 'foo' } ``` ## Syntax
| Syntax Element | Description |
|---|---|
| :name or {name} | Captures anything but a forward slash in a semi-greedy fashion. Capture is named name. Capture behavior can be modified with capture and greedy option. |
| *name or {+name} | Captures anything in a non-greedy fashion. Capture is named name. |
| * or {+splat} | Captures anything in a non-greedy fashion. Capture is named splat. It is always an array of captures, as you can use it more than once in a pattern. |
| (expression) | Enclosed expression is optional. |
| expression|expression|... | Will match anything matching the nested expressions. May contain any other syntax element, including captures. |
| x? | Makes x optional. For instance, (foo)? matches foo or an empty string. |
| / | Matches forward slash. Does not match URI encoded version of forward slash. |
| \x | Matches x or URI encoded version of x. For instance \* matches *. |
| any other character | Matches exactly that character or a URI encoded version of it. |