Class: Snazzy::TagCloudComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Snazzy::TagCloudComponent
- Defined in:
- app/components/snazzy/tag_cloud_component.rb
Instance Method Summary collapse
-
#initialize(tag_labels:) ⇒ TagCloudComponent
constructor
A new instance of TagCloudComponent.
Constructor Details
#initialize(tag_labels:) ⇒ TagCloudComponent
Returns a new instance of TagCloudComponent.
5 6 7 |
# File 'app/components/snazzy/tag_cloud_component.rb', line 5 def initialize(tag_labels:) @tag_labels = tag_labels end |