Class: Tuttle::Presenters::ActionDispatch::Routing::RouteWrapper
- Inherits:
-
ActionDispatch::Routing::RouteWrapper
- Object
- ActionDispatch::Routing::RouteWrapper
- Tuttle::Presenters::ActionDispatch::Routing::RouteWrapper
- Defined in:
- lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb
Instance Method Summary collapse
- #action ⇒ Object
- #controller ⇒ Object
- #endpoint_or_app_name ⇒ Object
- #is_internal_to_rails? ⇒ Boolean
- #uses_dispatcher? ⇒ Boolean
Instance Method Details
#action ⇒ Object
15 16 17 |
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 15 def action super if uses_dispatcher? end |
#controller ⇒ Object
11 12 13 |
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 11 def controller super if uses_dispatcher? end |
#endpoint_or_app_name ⇒ Object
7 8 9 |
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 7 def endpoint_or_app_name uses_dispatcher? ? endpoint : (rack_app.is_a?(Class) ? rack_app : rack_app.class) end |
#is_internal_to_rails? ⇒ Boolean
23 24 25 |
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 23 def is_internal_to_rails? !!internal? end |
#uses_dispatcher? ⇒ Boolean
19 20 21 |
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 19 def uses_dispatcher? rack_app.respond_to?(:dispatcher?) end |