Module: Metanorma::StandardDocument::PresentationAttributes

Overview

Presentation/formatting attributes shared by all section types. Include in any section class that supports presentation metadata.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/metanorma/standard_document/block_attributes.rb', line 85

def self.included(base)
  base.class_eval do
    attribute :anchor, :string
    attribute :semx_id, :string
    attribute :autonum, :string
    attribute :displayorder, :integer
    attribute :fmt_title,
              Metanorma::Document::Components::Inline::FmtTitleElement
    attribute :fmt_xref_label,
              Metanorma::Document::Components::Inline::FmtXrefLabelElement,
              collection: true
    attribute :variant_title,
              Metanorma::Document::Components::Inline::VariantTitleElement,
              collection: true
    attribute :fmt_annotation_start,
              Metanorma::Document::Components::Inline::FmtAnnotationStartElement,
              collection: true
    attribute :fmt_annotation_end,
              Metanorma::Document::Components::Inline::FmtAnnotationEndElement,
              collection: true
  end
end