Sha256: 5237307c0c89d2148c8816bba35ae430a18d03d5360b8436f9e0023ebbaa7fa4
Contents?: true
Size: 451 Bytes
Versions: 4
Compression:
Stored size: 451 Bytes
Contents
module Xmlenc module Builder class ReferenceList include Xmlenc::Builder::Base tag "ReferenceList" register_namespace "xenc", Xmlenc::NAMESPACES[:xenc] namespace "xenc" has_many :data_references, Xmlenc::Builder::DataReference, xpath: "./" def add_data_reference(data_id) self.data_references ||= [] self.data_references << DataReference.new(uri: "##{data_id}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems