Sha256: c3baeb83f31ec42e610a567de454006611eed66cb7651a9ac3c782bd6fd432a5

Contents?: true

Size: 495 Bytes

Versions: 9

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

require 'iso_bib_item/localized_string'

module IsoBibItem
  # Dovument status.
  class DocumentStatus
    # @return [IsoBibItem::LocalizedString]
    attr_reader :status

    # @param status [IsoBibItem::LocalizedString]
    def initialize(status)
      @status = status
    end

    def to_xml(builder)
      builder.status do
        # FormattedString.instance_method(:to_xml).bind(status).call builder
        status.to_xml builder
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iso-bib-item-0.1.8 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.7 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.6 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.5 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.4 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.3 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.2 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.1 lib/iso_bib_item/document_status.rb
iso-bib-item-0.1.0 lib/iso_bib_item/document_status.rb