Class: Primer::DetailsComponent::Body

Inherits:
Slot
  • Object
show all
Defined in:
app/components/primer/details_component.rb

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Method Summary collapse

Methods included from JoinStyleArgumentsHelper

#join_style_arguments

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**system_arguments) ⇒ Body

Returns a new instance of Body.



53
54
55
56
# File 'app/components/primer/details_component.rb', line 53

def initialize(**system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] ||= :div
end

Instance Method Details

#componentObject



58
59
60
# File 'app/components/primer/details_component.rb', line 58

def component
  Primer::BaseComponent.new(**@system_arguments)
end