1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/routing/endpoint.rb

18 lines
384 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2014-05-27 15:10:24 -04:00
module ActionDispatch
module Routing
class Endpoint # :nodoc:
def dispatcher?; false; end
def redirect?; false; end
def matches?(req); true; end
def app; self; end
def rack_app; app; end
def engine?
rack_app.is_a?(Class) && rack_app < Rails::Engine
end
2014-05-27 15:10:24 -04:00
end
end
end