Class: UI::CardDescriptionComponent

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

Instance Method Summary collapse

Methods included from CardDescriptionBehavior

#card_description_classes, #card_description_html_attributes, #render_card_description

Constructor Details

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

Returns a new instance of CardDescriptionComponent.



6
7
8
9
# File 'app/view_components/ui/card_description_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_description_component.rb', line 11

def call
  render_card_description { content }
end