lib/booties/panel.rb
##
# Renders the panel body. The content of the body can be passed in through
# the +content+ parameter or as a block. If +class+ is given, it will be
# merged with the required panel body class. Additional keyword arguments
# will be passed as an options Hash to #content_tag.
Renders the panel body. The content of the body can be passed in through
the +content+ parameter or as a block. If +class+ is given, it will be
merged with the required panel body class. Additional keyword arguments
will be passed as an options Hash to #content_tag.
Renders the panel body . The content of the body can be passed in through the + content + parameter or as a block . If + class + is given it will be merged with the required panel body class . Additional keyword arguments will be passed as an options Hash to #content_tag .
def body(content = nil, class: nil, **options, &block)
      content ||= capture(&block)
      classes   = merge_classes CSS_CLASSES[:body],
                                binding.local_variable_get(:class)
      content_tag :div, content, class: classes, **options
    end
def body ( content = nil , class : nil , ** options , & block ) content ||= capture ( & block ) classes = merge_classes CSS_CLASSES [ :body ] , binding . local_variable_get ( :class ) content_tag :div , content , class : classes , ** options end
Renders the panel body.
Renders the panel body .
content
<not_specific>
class
<not_specific>
options
<not_specific>
block
<not_specific>