Class: Primer::SubheadComponent::Actions

Inherits:
ViewComponent::Slot
  • Object
show all
Includes:
ClassNameHelper
Defined in:
app/components/primer/subhead_component.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**system_arguments) ⇒ Actions

Returns a new instance of Actions.

Parameters:

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>



96
97
98
99
100
# File 'app/components/primer/subhead_component.rb', line 96

def initialize(**system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = :div
  @system_arguments[:classes] = class_names(@system_arguments[:classes], "Subhead-actions")
end

Instance Attribute Details

#system_argumentsObject (readonly)

Returns the value of attribute system_arguments.



93
94
95
# File 'app/components/primer/subhead_component.rb', line 93

def system_arguments
  @system_arguments
end