Class: Ragdoll::AlertComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Ragdoll::AlertComponent
- Defined in:
- app/components/ragdoll/alert_component.rb
Instance Method Summary collapse
-
#initialize(message:, type: 'info', dismissible: true, **options) ⇒ AlertComponent
constructor
A new instance of AlertComponent.
Constructor Details
#initialize(message:, type: 'info', dismissible: true, **options) ⇒ AlertComponent
Returns a new instance of AlertComponent.
5 6 7 8 9 10 |
# File 'app/components/ragdoll/alert_component.rb', line 5 def initialize(message:, type: 'info', dismissible: true, **) = @type = type @dismissible = dismissible = end |