Class: Tag::CategoryComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/tag/category_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(label:, color: 'indigo') ⇒ CategoryComponent

Returns a new instance of CategoryComponent.



5
6
7
8
# File 'app/components/tag/category_component.rb', line 5

def initialize(label:, color: 'indigo')
  @label = label
  @color = color
end