Class: BadgeComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- BadgeComponent
- Defined in:
- lib/alveole/components/badge_component.rb
Instance Method Summary collapse
-
#initialize(label:, options: {}) ⇒ BadgeComponent
constructor
A new instance of BadgeComponent.
Constructor Details
#initialize(label:, options: {}) ⇒ BadgeComponent
Returns a new instance of BadgeComponent.
2 3 4 5 6 7 |
# File 'lib/alveole/components/badge_component.rb', line 2 def initialize(label:, options: {}) super @label = label @options = end |