Class: Modern::App::Router
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Modern::App::Router
- Defined in:
- lib/modern/app/router.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(inputs) ⇒ Router
constructor
A new instance of Router.
- #resolve(_http_method, _path) ⇒ Object
Constructor Details
#initialize(inputs) ⇒ Router
Returns a new instance of Router.
12 13 14 |
# File 'lib/modern/app/router.rb', line 12 def initialize(inputs) super(inputs) end |
Instance Method Details
#resolve(_http_method, _path) ⇒ Object
16 17 18 |
# File 'lib/modern/app/router.rb', line 16 def resolve(_http_method, _path) raise "#{self.class.name}#resolve must be implemented." end |