| Module | RouteTranslator::Translator::Path::Segment |
| In: |
lib/route_translator/translator/path/segment.rb
|
Translates a single path segment.
If the path segment contains something like an optional format "people(.:format)", only "people" will be translated. If the path contains a hyphenated suffix, it will be translated. If there is no translation, the path segment is blank, begins with a ":" (param key) or "*" (wildcard), the segment is returned untouched.