Class: Wayfarer::Routing::Matchers::Suffix
- Inherits:
-
Struct
- Object
- Struct
- Wayfarer::Routing::Matchers::Suffix
- Defined in:
- lib/wayfarer/routing/matchers/suffix.rb
Instance Attribute Summary collapse
-
#suffix ⇒ Object
Returns the value of attribute suffix.
Instance Method Summary collapse
Instance Attribute Details
#suffix ⇒ Object
Returns the value of attribute suffix
6 7 8 |
# File 'lib/wayfarer/routing/matchers/suffix.rb', line 6 def suffix @suffix end |
Instance Method Details
#match(url) ⇒ Object
7 8 9 |
# File 'lib/wayfarer/routing/matchers/suffix.rb', line 7 def match(url) url.path.end_with?(suffix) end |
#params(_) ⇒ Object
11 12 13 |
# File 'lib/wayfarer/routing/matchers/suffix.rb', line 11 def params(_) {} end |