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
-
#system_arguments ⇒ Object
readonly
Returns the value of attribute system_arguments.
Instance Method Summary collapse
-
#initialize(**system_arguments) ⇒ Body
constructor
A new instance of Body.
Methods included from JoinStyleArgumentsHelper
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean
Methods included from ClassNameHelper
Constructor Details
#initialize(**system_arguments) ⇒ Body
Returns a new instance of Body.
83 84 85 86 87 88 89 90 |
# File 'app/components/primer/timeline_item_component.rb', line 83 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :div @system_arguments[:classes] = class_names( "TimelineItem-body", system_arguments[:classes] ) end |
Instance Attribute Details
#system_arguments ⇒ Object (readonly)
Returns the value of attribute system_arguments.
80 81 82 |
# File 'app/components/primer/timeline_item_component.rb', line 80 def system_arguments @system_arguments end |