Class: Coradoc::CoreModel::PreambleElement

Inherits:
StructuralElement show all
Defined in:
lib/coradoc/core_model/structural_element.rb

Overview

Preamble content before the first section heading

Instance Attribute Summary

Attributes inherited from StructuralElement

#attributes, #children, #content, #level

Attributes inherited from Base

#element_attributes, #id, #metadata_entries, #title

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from StructuralElement

#document?, #element_type, #header?, #heading_level, #section?

Methods included from HasChildren

#has_children?

Methods inherited from Base

#accept, #attr, #flat_text, #metadata, #semantically_equivalent?, #set_attr, #set_metadata

Class Method Details

.element_type_nameObject



100
101
102
# File 'lib/coradoc/core_model/structural_element.rb', line 100

def self.element_type_name
  'preamble'
end

Instance Method Details

#preamble?Boolean

Returns:

  • (Boolean)


96
97
98
# File 'lib/coradoc/core_model/structural_element.rb', line 96

def preamble?
  true
end