Method: Bootstrap4Helper::Accordion#to_s
- Defined in:
- lib/bootstrap4_helper/accordion.rb
#to_s ⇒ String
Leaving off the default ‘accordion` class because with only 1 accordion, there is no bottom.
101 102 103 104 105 |
# File 'lib/bootstrap4_helper/accordion.rb', line 101 def to_s content_tag :div, id: @id, class: "card #{@class}", data: @data.except(:target) do @content.call(self) end end |