Class: Primer::SubheadComponent::Actions
- Inherits:
-
ViewComponent::Slot
- Object
- ViewComponent::Slot
- Primer::SubheadComponent::Actions
- Includes:
- ClassNameHelper
- Defined in:
- app/components/primer/subhead_component.rb
Instance Attribute Summary collapse
-
#kwargs ⇒ Object
readonly
Returns the value of attribute kwargs.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Actions
constructor
A new instance of Actions.
Methods included from ClassNameHelper
Constructor Details
#initialize(**kwargs) ⇒ Actions
Returns a new instance of Actions.
70 71 72 73 74 |
# File 'app/components/primer/subhead_component.rb', line 70 def initialize(**kwargs) @kwargs = kwargs @kwargs[:tag] = :div @kwargs[:classes] = class_names(@kwargs[:classes], "Subhead-actions") end |
Instance Attribute Details
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
68 69 70 |
# File 'app/components/primer/subhead_component.rb', line 68 def kwargs @kwargs end |