Method: Primer::OpenProject::Heading#initialize

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

#initialize(**system_arguments) ⇒ Heading

Returns a new instance of Heading.

Parameters:

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>


12
13
14
15
16
17
18
# File 'app/components/primer/open_project/heading.rb', line 12

def initialize(**system_arguments)
  @system_arguments = system_arguments

  # Override because of Primer::OpenProject::PageHeader which should be the
  # most prominent element in the hierarchical structure
  @system_arguments[:font_weight] ||= :normal
end