Class: PPZ::RootSectionModel

Inherits:
AbstractSectionModel show all
Defined in:
lib/doc/model/section/root.rb

Instance Attribute Summary

Attributes inherited from AbstractModel

#father_model, #index, #left_model, #right_model

Instance Method Summary collapse

Methods inherited from AbstractSectionModel

#append

Methods inherited from AbstractWrapperModel

#append, #initialize

Methods inherited from AbstractModel

from_line, #transform_inline_element

Constructor Details

This class inherits a constructor from PPZ::AbstractWrapperModel

Instance Method Details

#get_nav_htmlObject



9
10
11
# File 'lib/doc/model/section/root.rb', line 9

def get_nav_html
  return "<aside><ul>#{super}</ul></aside>"
end

#levelObject



2
3
4
# File 'lib/doc/model/section/root.rb', line 2

def level
  0
end

#section_dom_idObject



5
6
7
# File 'lib/doc/model/section/root.rb', line 5

def section_dom_id
  'section'
end

#to_htmlObject



13
14
15
# File 'lib/doc/model/section/root.rb', line 13

def to_html
  "#{get_nav_html}<article>#{super}</article>"
end