Method: Primer::Beta::Heading#initialize

Defined in:
app/components/primer/beta/heading.rb

#initialize(tag:, **system_arguments) ⇒ Heading

Returns a new instance of Heading.

Parameters:

  • tag (String)

    <%= one_of(Primer::Beta::Heading::TAG_OPTIONS) %>

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>


28
29
30
31
# File 'app/components/primer/beta/heading.rb', line 28

def initialize(tag:, **system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = fetch_or_fallback(TAG_OPTIONS, tag, TAG_FALLBACK)
end