Class: SocialFramework::RouteHelper::RouteStrategy
- Inherits:
-
Object
- Object
- SocialFramework::RouteHelper::RouteStrategy
- Defined in:
- app/helpers/social_framework/route_helper.rb
Overview
Define a Abstract Class to compare routes
Direct Known Subclasses
Instance Method Summary collapse
-
#compare_routes(principal_route, secondary_route) ⇒ Object
- Compare the routes to verify if are compatible ====== Params:
principal_route
Route
who gives a liftsecondary_route
-
Route
who hitchhike Returns NotImplementedError.
- Compare the routes to verify if are compatible ====== Params:
Instance Method Details
#compare_routes(principal_route, secondary_route) ⇒ Object
Compare the routes to verify if are compatible
Params:
principal_route
-
Route
who gives a lift secondary_route
-
Route
who hitchhike
Returns NotImplementedError
13 14 15 |
# File 'app/helpers/social_framework/route_helper.rb', line 13 def compare_routes(principal_route, secondary_route) raise 'Must implement method in subclass' end |