Module: Metanorma::StandardDocument::PresentationAttributes
- Included in:
- IsoDocument::Sections::IsoTermsSection, Sections::AnnexSection, Sections::ClauseSection, Sections::ContentSection, Sections::DefinitionSection, Sections::TermsSection
- Defined in:
- lib/metanorma/standard_document/block_attributes.rb
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
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/metanorma/standard_document/block_attributes.rb', line 72 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 |