Sha256: 22c777587d4a8153c3d1ee5266bf19003f67bb2722ce1e444b64cb0f4f040055
Contents?: true
Size: 457 Bytes
Versions: 20
Compression:
Stored size: 457 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
20 entries across 20 versions & 1 rubygems