Sha256: 7e19421173ab34dfbfb45fefc244baa67389ee8c320da4793ebb4f0f14d15a92
Contents?: true
Size: 533 Bytes
Versions: 17
Compression:
Stored size: 533 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 # @param [Nokogiri::XML::Builder] 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
17 entries across 17 versions & 1 rubygems