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