Module: GreenGarden::Comparer

Included in:
Tree
Defined in:
lib/green_garden/comparer.rb

Instance Method Summary collapse

Instance Method Details

#compare_activities(activity_one, activity_two) ⇒ Object



5
6
7
8
9
# File 'lib/green_garden/comparer.rb', line 5

def compare_activities(activity_one, activity_two)
  (activity_one.shifts == activity_two.shifts) &&
    (activity_one.parent_nodes == activity_two.parent_nodes) &&
    (activity_one.children_nodes == activity_two.children_nodes)
end