Sha256: 33e4d7fb8391aec09a7aac8a44652a746b567609d602ed628b0e81386a8145d0

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

require_relative "base_class"

module Oscal
  class Merge < Oscal::BaseClass
    KEY = %i(combine flat as_is custom)

    attr_accessor *KEY

    attr_serializable *KEY

    def set_value(key_name, val)
      case key_name
      when "custom"
        Custom.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/merge.rb
oscal-0.2.2 lib/oscal/merge.rb
oscal-0.2.0 lib/oscal/merge.rb