Class: UI::CardContentComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
CardContentBehavior
Defined in:
app/view_components/ui/card_content_component.rb

Instance Method Summary collapse

Methods included from CardContentBehavior

#card_content_classes, #card_content_html_attributes, #render_card_content

Constructor Details

#initialize(classes: "", **attributes) ⇒ CardContentComponent

Returns a new instance of CardContentComponent.



6
7
8
9
# File 'app/view_components/ui/card_content_component.rb', line 6

def initialize(classes: "", **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#callObject



11
12
13
# File 'app/view_components/ui/card_content_component.rb', line 11

def call
  render_card_content { content }
end