class Passages::RouteCollection
Enumerable to iterate through and select only external routes
for the main application to display
Attributes
routes[R]
Public Class Methods
new(routes)
click to toggle source
# File lib/passages/route_collection.rb, line 11 def initialize(routes) @routes = routes.reject(&:internal?) end
Public Instance Methods
each(&block)
click to toggle source
# File lib/passages/route_collection.rb, line 15 def each(&block) Array(routes).each(&block) end
Private Instance Methods
main_app_name()
click to toggle source
# File lib/passages/route_collection.rb, line 21 def main_app_name Rails.application.class.name end