Class: Primer::PopoverComponent::Heading
- Defined in:
- app/components/primer/popover_component.rb
Overview
:nodoc:
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Method Summary collapse
- #component ⇒ Object
-
#initialize(**system_arguments) ⇒ Heading
constructor
A new instance of Heading.
Methods included from JoinStyleArgumentsHelper
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean
Methods included from ClassNameHelper
Constructor Details
#initialize(**system_arguments) ⇒ Heading
Returns a new instance of Heading.
63 64 65 66 67 |
# File 'app/components/primer/popover_component.rb', line 63 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:mb] ||= 2 @system_arguments[:tag] ||= :h4 end |
Instance Method Details
#component ⇒ Object
69 70 71 |
# File 'app/components/primer/popover_component.rb', line 69 def component Primer::HeadingComponent.new(**@system_arguments) end |