lib/maintain/bitmask_value.rb in maintain-0.1.7 vs lib/maintain/bitmask_value.rb in maintain-0.1.8
- old
+ new
@@ -1,7 +1,12 @@
# encoding: UTF-8
module Maintain
class BitmaskValue < Value
+ def initialize(state, value = nil)
+ @state = state
+ @value = value
+ end
+
def set_value(value)
@value = bitmask_for(value)
end
protected
\ No newline at end of file