lib/mercenary/option.rb in mercenary-0.3.3 vs lib/mercenary/option.rb in mercenary-0.3.4
- old
+ new
@@ -59,10 +59,10 @@
#
# Returns a Fixnum which is unique to this Option based on the instance variables
def hash
instance_variables.map do |var|
instance_variable_get(var).hash
- end.reduce(:&)
+ end.reduce(:^)
end
# Public: Check equivalence of two Options based on equivalence of their
# instance variables
#