Class: Primer::FlashComponent::Actions
- Defined in:
- app/components/primer/flash_component.rb
Constant Summary
Constants included from Primer::FetchOrFallbackHelper
Primer::FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#system_arguments ⇒ Object
readonly
Returns the value of attribute system_arguments.
Instance Method Summary collapse
-
#initialize(**system_arguments) ⇒ Actions
constructor
A new instance of Actions.
Methods included from JoinStyleArgumentsHelper
Methods included from Primer::FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean
Methods included from ClassNameHelper
Constructor Details
#initialize(**system_arguments) ⇒ Actions
Returns a new instance of Actions.
64 65 66 67 68 |
# File 'app/components/primer/flash_component.rb', line 64 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :div @system_arguments[:classes] = class_names(@system_arguments[:classes], "flash-action") end |
Instance Attribute Details
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
61 62 63 |
# File 'app/components/primer/flash_component.rb', line 61 def system_arguments @system_arguments end |