Class: NitroKit::Toast::FlashMessages
- Defined in:
- app/components/nitro_kit/toast.rb
Instance Attribute Summary collapse
-
#flash ⇒ Object
readonly
Returns the value of attribute flash.
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize(flash) ⇒ FlashMessages
constructor
A new instance of FlashMessages.
- #view_template ⇒ Object
Methods inherited from Component
Constructor Details
#initialize(flash) ⇒ FlashMessages
Returns a new instance of FlashMessages.
6 7 8 |
# File 'app/components/nitro_kit/toast.rb', line 6 def initialize(flash) @flash = flash end |
Instance Attribute Details
#flash ⇒ Object (readonly)
Returns the value of attribute flash.
10 11 12 |
# File 'app/components/nitro_kit/toast.rb', line 10 def flash @flash end |