Class: PPZ::AbstractListWrapperModel
- Inherits:
-
AbstractWrapperModel
- Object
- AbstractModel
- AbstractWrapperModel
- PPZ::AbstractListWrapperModel
- Defined in:
- lib/doc/model/list/wrapper/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
Attributes inherited from AbstractModel
#father_model, #index, #left_model, #right_model
Instance Method Summary collapse
-
#initialize(level) ⇒ AbstractListWrapperModel
constructor
A new instance of AbstractListWrapperModel.
- #to_html ⇒ Object
Methods inherited from AbstractWrapperModel
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
#level ⇒ Object (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_html ⇒ Object
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 |