Class: PPZ::AbstractListWrapperModel

Inherits:
AbstractWrapperModel show all
Defined in:
lib/doc/model/list/wrapper/abstract.rb

Direct Known Subclasses

UnorderedListWrapperModel

Instance Attribute Summary collapse

Attributes inherited from AbstractModel

#father_model, #index, #left_model, #right_model

Instance Method Summary collapse

Methods inherited from AbstractWrapperModel

#append

Methods inherited from AbstractModel

from_line, #transform_inline_element

Constructor Details

#initialize(level) ⇒ AbstractListWrapperModel

Returns a new instance of AbstractListWrapperModel.



4
5
6
7
# File 'lib/doc/model/list/wrapper/abstract.rb', line 4

def initialize level
  super()
  @level = level
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



2
3
4
# File 'lib/doc/model/list/wrapper/abstract.rb', line 2

def level
  @level
end

Instance Method Details

#to_htmlObject



9
10
11
# File 'lib/doc/model/list/wrapper/abstract.rb', line 9

def to_html
  "<#{self.class::TAG_NAME}>#{super}</#{self.class::TAG_NAME}>"
end