Method: Primer::Alpha::Layout::Sidebar#initialize

Defined in:
app/components/primer/alpha/layout.rb

#initialize(tag: TAG_DEFAULT, **system_arguments) ⇒ Sidebar

Returns a new instance of Sidebar.

[View source]

144
145
146
147
148
149
150
151
152
# File 'app/components/primer/alpha/layout.rb', line 144

def initialize(tag: TAG_DEFAULT, **system_arguments)
  @system_arguments = system_arguments

  @system_arguments[:tag] = fetch_or_fallback(TAG_OPTIONS, tag, TAG_DEFAULT)
  @system_arguments[:classes] = class_names(
    "Layout-sidebar",
    @system_arguments[:classes]
  )
end