Class: Tuttle::Presenters::ActionDispatch::Routing::RouteWrapper

Inherits:
ActionDispatch::Routing::RouteWrapper
  • Object
show all
Defined in:
lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb

Instance Method Summary collapse

Instance Method Details

#actionObject



19
20
21
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 19

def action
  super if uses_dispatcher?
end

#controllerObject



15
16
17
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 15

def controller
  super if uses_dispatcher?
end

#endpoint_or_app_nameObject



7
8
9
10
11
12
13
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 7

def endpoint_or_app_name
  if uses_dispatcher?
    endpoint
  else
    rack_app.is_a?(Class) ? rack_app : rack_app.class
  end
end

#internal_to_rails?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 27

def internal_to_rails?
  true == internal?
end

#uses_dispatcher?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb', line 23

def uses_dispatcher?
  rack_app.respond_to?(:dispatcher?)
end