Class: Primer::TimelineItemComponent::Body
- Defined in:
- app/components/primer/timeline_item_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
Returns a new instance of Body.
59 60 61 62 63 64 65 66 |
# File 'app/components/primer/timeline_item_component.rb', line 59 def initialize(**kwargs) @kwargs = kwargs @kwargs[:tag] = :div @kwargs[:classes] = class_names( "TimelineItem-body", kwargs[:classes] ) end |
Instance Attribute Details
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
58 59 60 |
# File 'app/components/primer/timeline_item_component.rb', line 58 def kwargs @kwargs end |