Class: SocialFramework::RouteHelper::RouteStrategy

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/social_framework/route_helper.rb

Overview

Define a Abstract Class to compare routes

Direct Known Subclasses

RouteStrategyDefault

Instance Method Summary collapse

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