Class: Primer::PopoverComponent::Heading
- Defined in:
- app/components/primer/popover_component.rb
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.
62 63 64 65 66 |
# File 'app/components/primer/popover_component.rb', line 62 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:mb] ||= 2 @system_arguments[:tag] ||= :h4 end |
Instance Method Details
#component ⇒ Object
68 69 70 |
# File 'app/components/primer/popover_component.rb', line 68 def component Primer::HeadingComponent.new(**@system_arguments) end |