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

Version Path
xmlenc-0.8.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.7.1 lib/xmlenc/builder/reference_list.rb
xmlenc-0.7.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.9 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.8 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.6 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.5 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.4 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.3 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.2 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.1 lib/xmlenc/builder/reference_list.rb
xmlenc-0.6.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.5.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.4.1 lib/xmlenc/builder/reference_list.rb
xmlenc-0.4.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.3.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.2.1 lib/xmlenc/builder/reference_list.rb
xmlenc-0.2.0 lib/xmlenc/builder/reference_list.rb
xmlenc-0.1.7 lib/xmlenc/builder/reference_list.rb
xmlenc-0.1.6 lib/xmlenc/builder/reference_list.rb