Class: Tag::CategoryComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Tag::CategoryComponent
- Defined in:
- app/components/tag/category_component.rb
Instance Method Summary collapse
-
#initialize(label:, color: 'indigo') ⇒ CategoryComponent
constructor
A new instance of CategoryComponent.
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 |