Sha256: 3a91e4ef38408b237311a37a7f187cb44dfbbb47149e4258459a2212f94dbf1c
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
require_relative "base_class" 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" Test.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/constraint.rb |
oscal-0.2.2 | lib/oscal/constraint.rb |
oscal-0.2.0 | lib/oscal/constraint.rb |