Class: Metanorma::StandardDocument::Sections::AnnexSection
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Metanorma::StandardDocument::Sections::AnnexSection
- Includes:
- BlockAttributes
- Defined in:
- lib/metanorma/standard_document/sections/annex_section.rb
Overview
An annex section in the document. Corresponds to isodoc.rnc ‘Annex-Section-Body`:
Annex-Section-Attributes, title?,
( BasicBlock*,
(annex-subsection | terms | definitions | references | floating-title)* )
Uses ‘ordered` to enable `each_mixed_content` for document-order iteration.
Direct Known Subclasses
IetfDocument::Sections::IetfAnnexSection, IsoDocument::Sections::IsoAnnexSection
Instance Method Summary collapse
-
#blocks ⇒ Object
Blocks in document order, used by JSON serialization.
Methods included from BlockAttributes
Instance Method Details
#blocks ⇒ Object
Blocks in document order, used by JSON serialization
84 85 86 87 88 89 90 91 92 93 |
# File 'lib/metanorma/standard_document/sections/annex_section.rb', line 84 def blocks @blocks ||= begin result = [] each_mixed_content do |node| result << node unless node.is_a?(String) end result end end |