Class: Coradoc::CoreModel::SectionElement

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

Overview

Section with a heading at a specific level

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?, #document_title?, #element_type, #empty_body?, #header?, #heading_level, #preamble?, #visible_children

Methods included from HasChildren

#has_children?

Methods inherited from Base

#accept, #attr, #body_content?, build, #flat_text, #metadata, #semantically_equivalent?, #set_attr, #set_metadata, #whitespace_only?

Class Method Details

.element_type_nameObject



121
122
123
# File 'lib/coradoc/core_model/structural_element.rb', line 121

def self.element_type_name
  'section'
end

Instance Method Details

#section?Boolean

Returns:

  • (Boolean)


117
118
119
# File 'lib/coradoc/core_model/structural_element.rb', line 117

def section?
  true
end