Class: Card::CardComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/card/card_component.rb

Defined Under Namespace

Classes: FooterComponent, HeaderComponent

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ CardComponent

Returns a new instance of CardComponent.



14
15
16
17
# File 'app/components/card/card_component.rb', line 14

def initialize(**options)
  @classes = options[:classes]
  @styles = options[:styles]
end