Class: Primer::BorderBoxComponent::Body
- Defined in:
- app/components/primer/border_box_component.rb
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#kwargs ⇒ Object
readonly
Returns the value of attribute kwargs.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Body
constructor
A new instance of Body.
Methods included from FetchOrFallbackHelper
Methods included from ClassNameHelper
Constructor Details
#initialize(**kwargs) ⇒ Body
53 54 55 56 57 58 59 60 |
# File 'app/components/primer/border_box_component.rb', line 53 def initialize(**kwargs) @kwargs = kwargs @kwargs[:tag] = :div @kwargs[:classes] = class_names( "Box-body", kwargs[:classes] ) end |
Instance Attribute Details
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
51 52 53 |
# File 'app/components/primer/border_box_component.rb', line 51 def kwargs @kwargs end |