Class: CommentReplyGroupComponent
- Defined in:
- app/components/comment_reply_group_component.rb
Overview
CommentReplyGroup — nested reply group within a Comment.
Usage:
Comment { |c|
c.avatar { ... }
c.author { text "Elliot" }
CommentReplyGroup {
CommentReply { |c| ... }
}
}
Constant Summary
Constants inherited from Component
Instance Method Summary collapse
Methods inherited from Component
default, #initialize, #render_in, slot
Constructor Details
This class inherits a constructor from Component
Instance Method Details
#to_s ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/components/comment_reply_group_component.rb', line 17 def to_s classes = class_names( { "collapsed" => collapsed }, "comments" ) tag.div(**(class: classes)) { @content } end |