Class: Primer::SubheadComponent::Description
- Inherits:
-
ViewComponent::Slot
- Object
- ViewComponent::Slot
- Primer::SubheadComponent::Description
- 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) ⇒ Description
constructor
A new instance of Description.
Methods included from ClassNameHelper
Constructor Details
#initialize(**kwargs) ⇒ Description
Returns a new instance of Description.
107 108 109 110 111 |
# File 'app/components/primer/subhead_component.rb', line 107 def initialize(**kwargs) @kwargs = kwargs @kwargs[:tag] = :div @kwargs[:classes] = class_names(@kwargs[:classes], "Subhead-description") end |
Instance Attribute Details
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
104 105 106 |
# File 'app/components/primer/subhead_component.rb', line 104 def kwargs @kwargs end |