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