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