Class: Passages::EngineRouteCollection
- Inherits:
-
RouteCollection
- Object
- RouteCollection
- Passages::EngineRouteCollection
- Defined in:
- lib/passages/engine_route_collection.rb
Overview
Specialized collection class inherited from RouteCollection specifically
for routes of Engines (this Engine included)
Instance Attribute Summary
Attributes inherited from RouteCollection
Instance Method Summary collapse
-
#initialize(routes) ⇒ EngineRouteCollection
constructor
A new instance of EngineRouteCollection.
Methods inherited from RouteCollection
Constructor Details
#initialize(routes) ⇒ EngineRouteCollection
Returns a new instance of EngineRouteCollection.
8 9 10 |
# File 'lib/passages/engine_route_collection.rb', line 8 def initialize(routes) @routes = routes.reject { |h| h[:routes].all?(&:internal?) } end |