Class: Bootstrap4Helper::CardDeck
- Inherits:
-
CardGrouping
- Object
- Component
- CardGrouping
- Bootstrap4Helper::CardDeck
- Defined in:
- lib/bootstrap4_helper/card_deck.rb
Overview
Creates a Card Deck component
Instance Method Summary collapse
-
#to_s ⇒ Object
String representation of the object.
Methods inherited from CardGrouping
Methods inherited from Component
#capture, #concat, #config, #content_tag, #initialize, #parse_arguments, #uuid
Constructor Details
This class inherits a constructor from Bootstrap4Helper::CardGrouping
Instance Method Details
#to_s ⇒ Object
String representation of the object.
9 10 11 12 13 |
# File 'lib/bootstrap4_helper/card_deck.rb', line 9 def to_s content_tag :div, id: @id, class: "card-deck #{@class}", data: @data do @content.call(self) end end |