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(**options)
  render(Card::CardComponent.new(**options)) do |c|
    yield(c)
  end
end


17
18
19
20
21
# File 'app/helpers/card/card_helper.rb', line 17

def footer(c, **options)
  c.with_footer(**options) 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, **options)
  c.with_header(**options) do
    yield
  end
end