Class: Mayu::Routing::Routes::Named
- Defined in:
- lib/mayu/routing/routes.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Route
Instance Method Summary collapse
-
#initialize(name) ⇒ Named
constructor
A new instance of Named.
- #match?(part) ⇒ Boolean
Methods inherited from Route
Constructor Details
#initialize(name) ⇒ Named
Returns a new instance of Named.
54 55 56 57 |
# File 'lib/mayu/routing/routes.rb', line 54 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
51 52 53 |
# File 'lib/mayu/routing/routes.rb', line 51 def name @name end |
Instance Method Details
#match?(part) ⇒ Boolean
60 61 62 |
# File 'lib/mayu/routing/routes.rb', line 60 def match?(part) part == @name end |