Sha256: 41bf831e152efc7fa8f41c62a5057b77cd82d8fc7072a28e2df92019eae1bdc6
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
require_relative "base_class" module Oscal class Modify < Oscal::BaseClass KEY = %i(set_parameters alters) attr_accessor *KEY attr_serializable *KEY def set_value(key_name, val) case key_name when "set_parameters" SetParameter.wrap(val) when "alters" Alter.wrap(val) else val end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oscal-0.2.3 | lib/oscal/modify.rb |
oscal-0.2.2 | lib/oscal/modify.rb |
oscal-0.2.0 | lib/oscal/modify.rb |