Class: Primer::BorderBoxComponent::Header
- Defined in:
- app/components/primer/border_box_component.rb
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#system_arguments ⇒ Object
readonly
Returns the value of attribute system_arguments.
Instance Method Summary collapse
-
#initialize(**system_arguments) ⇒ Header
constructor
A new instance of Header.
Methods included from FetchOrFallbackHelper
Methods included from ClassNameHelper
Constructor Details
#initialize(**system_arguments) ⇒ Header
Returns a new instance of Header.
40 41 42 43 44 45 46 47 |
# File 'app/components/primer/border_box_component.rb', line 40 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :div @system_arguments[:classes] = class_names( "Box-header", system_arguments[:classes] ) end |
Instance Attribute Details
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
38 39 40 |
# File 'app/components/primer/border_box_component.rb', line 38 def system_arguments @system_arguments end |