Class: Coradoc::CoreModel::DocumentElement

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

Overview

Root document element

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

#element_type, #header?, #heading_level, #preamble?, #section?

Methods inherited from Base

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

Class Method Details

.element_type_nameObject



73
74
75
# File 'lib/coradoc/core_model/structural_element.rb', line 73

def self.element_type_name
  'document'
end

Instance Method Details

#document?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/coradoc/core_model/structural_element.rb', line 69

def document?
  true
end