lib/maintain/bitmask_value.rb in maintain-0.2.4 vs lib/maintain/bitmask_value.rb in maintain-0.2.5

- old
+ new

@@ -10,10 +10,10 @@ @value = bitmask_for(value) end protected def bitmask_for(states) - Array(states).compact.map{|value| value_for(value) }.sort.inject(0) {|total, mask| total | mask.to_i } + Array(states).compact.map{|value| value_for(value) }.compact.sort.inject(0) {|total, mask| total | mask.to_i } end def compare_value @value ||= 0 end \ No newline at end of file