Class: Mistiq::RoutesInspector
- Inherits:
-
Object
- Object
- Mistiq::RoutesInspector
- Defined in:
- lib/mistiq/init.rb
Instance Method Summary collapse
- #get_engine_routes ⇒ Object
- #get_routes ⇒ Object
-
#initialize(routes) ⇒ RoutesInspector
constructor
A new instance of RoutesInspector.
Constructor Details
#initialize(routes) ⇒ RoutesInspector
Returns a new instance of RoutesInspector.
201 202 203 204 |
# File 'lib/mistiq/init.rb', line 201 def initialize(routes) @engines = {} @routes = routes end |
Instance Method Details
#get_engine_routes ⇒ Object
212 213 214 |
# File 'lib/mistiq/init.rb', line 212 def get_engine_routes return @engines end |
#get_routes ⇒ Object
206 207 208 209 210 |
# File 'lib/mistiq/init.rb', line 206 def get_routes routes_to_display = filter_routes(nil) routes = collect_routes(routes_to_display) return routes end |