Class: PPZ::CommentItemModel
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- PPZ::CommentItemModel
- Defined in:
- lib/doc/model/comment/item.rb
Constant Summary collapse
- ContainerClass =
PPZ::CommentContainerModel
- REG_EXP =
/^\> (.+)/
Instance Attribute Summary
Attributes inherited from AbstractModel
#father_model, #index, #left_model, #right_model
Instance Method Summary collapse
-
#initialize(content) ⇒ CommentItemModel
constructor
A new instance of CommentItemModel.
- #to_html ⇒ Object
Methods inherited from AbstractModel
from_line, #transform_inline_element
Constructor Details
#initialize(content) ⇒ CommentItemModel
Returns a new instance of CommentItemModel.
5 6 7 |
# File 'lib/doc/model/comment/item.rb', line 5 def initialize content @content = transform_inline_element content end |
Instance Method Details
#to_html ⇒ Object
9 10 11 |
# File 'lib/doc/model/comment/item.rb', line 9 def to_html "<div class=\"comment-item\">#{@content}</div>" end |