lib/sitehub/collection/split_route_collection/split.rb in sitehub-0.4.2 vs lib/sitehub/collection/split_route_collection/split.rb in sitehub-0.4.3
- old
+ new
@@ -3,16 +3,18 @@
class SplitRouteCollection < Collection
class Split
attr_reader :upper, :lower
attr_accessor :value
- def initialize lower, upper, value
- @upper, @lower, @value = upper, lower, value
+ def initialize(lower, upper, value)
+ @upper = upper
+ @lower = lower
+ @value = value
end
- def == other
- other.is_a?(Split) && other.lower == self.lower && other.upper == self.upper
+ def ==(other)
+ other.is_a?(Split) && other.lower == lower && other.upper == upper
end
end
end
end
-end
\ No newline at end of file
+end