Class: Bootstrap4Helper::CardDeck

Inherits:
CardGrouping show all
Defined in:
lib/bootstrap4_helper/card_deck.rb

Overview

Creates a Card Deck component

Instance Method Summary collapse

Methods inherited from CardGrouping

#card, #initialize

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_sObject

String representation of the object.



9
10
11
12
13
# File 'lib/bootstrap4_helper/card_deck.rb', line 9

def to_s
   :div, id: @id, class: "card-deck #{@class}", data: @data do
    @content.call(self)
  end
end