lib/oscal/constraint.rb in oscal-0.1.1 vs lib/oscal/constraint.rb in oscal-0.2.0
- old
+ new
@@ -3,14 +3,15 @@
module Oscal
class Constraint < Oscal::BaseClass
KEY = %i(description tests)
attr_accessor *KEY
+
attr_serializable *KEY
def set_value(key_name, val)
case key_name
- when 'test'
+ when "test"
Test.wrap(val)
else
val
end
end