Class: Jets::Router::Route::Compat::App
- Inherits:
-
Object
- Object
- Jets::Router::Route::Compat::App
- Defined in:
- lib/jets/router/route/compat.rb
Overview
Interface based on Rails ActionDispatch::Routing::Endpoint
Instance Method Summary collapse
- #app ⇒ Object
- #dispatcher? ⇒ Boolean
- #engine? ⇒ Boolean
-
#initialize(route) ⇒ App
constructor
:nodoc:.
- #matches?(req) ⇒ Boolean
- #rack_app ⇒ Object
- #redirect? ⇒ Boolean
Constructor Details
#initialize(route) ⇒ App
:nodoc:
11 12 13 |
# File 'lib/jets/router/route/compat.rb', line 11 def initialize(route) @route = route end |
Instance Method Details
#app ⇒ Object
18 |
# File 'lib/jets/router/route/compat.rb', line 18 def app; self; end |
#dispatcher? ⇒ Boolean
15 |
# File 'lib/jets/router/route/compat.rb', line 15 def dispatcher?; false; end |
#engine? ⇒ Boolean
21 22 23 |
# File 'lib/jets/router/route/compat.rb', line 21 def engine? @route.engine? end |
#matches?(req) ⇒ Boolean
17 |
# File 'lib/jets/router/route/compat.rb', line 17 def matches?(req); true; end |
#rack_app ⇒ Object
19 |
# File 'lib/jets/router/route/compat.rb', line 19 def rack_app; app; end |
#redirect? ⇒ Boolean
16 |
# File 'lib/jets/router/route/compat.rb', line 16 def redirect?; false; end |