lib/trestle/breadcrumb.rb in trestle-0.8.3 vs lib/trestle/breadcrumb.rb in trestle-0.8.4

- old
+ new

@@ -9,11 +9,17 @@ def ==(other) label == other.label && path == other.path end class Trail + include Enumerable + def initialize(breadcrumbs=[]) @breadcrumbs = Array(breadcrumbs) + end + + def ==(other) + to_a == other.to_a end def dup self.class.new(@breadcrumbs.dup) end