lib/oscal/insert_control.rb in oscal-0.1.1 vs lib/oscal/insert_control.rb in oscal-0.2.0

- old
+ new

@@ -3,16 +3,17 @@ module Oscal class InsertControl < Oscal::BaseClass KEY = %i(order include_all include_controls exclude_controls) attr_accessor *KEY + attr_serializable *KEY def set_value(key_name, val) case key_name - when 'include_controls' + when "include_controls" IncludeControl.wrap(val) - when 'exclude_controls' + when "exclude_controls" ExcludeControls.wrap(val) else val end end