lib/maintain/bitmask_value.rb in maintain-0.2.9 vs lib/maintain/bitmask_value.rb in maintain-0.2.10

- old
+ new

@@ -27,13 +27,13 @@ if (method.to_s =~ /^(.+)(\?|!)$/) && @state.states.has_key?($1.to_sym) compare = value_for($1) if $2 == '?' self.class.class_eval <<-EOC def #{method} - @value & #{compare.inspect} != 0 + value_for(@value) & #{compare.inspect} != 0 end EOC - @value & compare != 0 + value_for(@value) & compare != 0 else self.class.class_eval <<-EOC def #{method} @value = (@value || 0) | #{compare.inspect} end \ No newline at end of file