Class: Modern::App::Router

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/modern/app/router.rb

Direct Known Subclasses

TrieRouter

Instance Method Summary collapse

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