Sha256: 2c62f23cda5f1cac053987f0f35b6f47b6e660fc2638acd567047e24ce74eacc
Contents?: true
Size: 452 Bytes
Versions: 7
Compression:
Stored size: 452 Bytes
Contents
require_relative 'route' module Passages # Enumerable to iterate through and select only external routes # for the main application to display class RouteCollection include Enumerable attr_reader :routes def initialize(routes) @routes = routes.reject(&:internal?) end def each(&block) Array(routes).each(&block) end private def main_app_name Rails.application.class.name end end end
Version data entries
7 entries across 7 versions & 1 rubygems