Method: Oscal::InsertControl#set_value

Defined in:
lib/oscal/insert_control.rb

#set_value(key_name, val) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/oscal/insert_control.rb', line 11

def set_value(key_name, val)
  case key_name
  when "include_controls"
    IncludeControl.wrap(val)
  when "exclude_controls"
    ExcludeControls.wrap(val)
  else
    val
  end
end