Class: CommentReplyGroupComponent

Inherits:
Component
  • Object
show all
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

Component::HTML_OPTIONS

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_sObject



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(**merge_html_options(class: classes)) { @content }
end