Module: Card::CardHelper
- Defined in:
- app/helpers/card/card_helper.rb
Instance Method Summary collapse
Instance Method Details
#card(**options) ⇒ Object
5 6 7 8 9 |
# File 'app/helpers/card/card_helper.rb', line 5 def card(**) render(Card::CardComponent.new(**)) do |c| yield(c) end end |
#footer(c, **options) ⇒ Object
17 18 19 20 21 |
# File 'app/helpers/card/card_helper.rb', line 17 def (c, **) c.(**) do yield end end |
#header(c, **options) ⇒ Object
11 12 13 14 15 |
# File 'app/helpers/card/card_helper.rb', line 11 def header(c, **) c.with_header(**) do yield end end |