Class: Primer::SubheadComponent::Actions

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

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 %>



94
95
96
97
98
# File 'app/components/primer/subhead_component.rb', line 94

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.



91
92
93
# File 'app/components/primer/subhead_component.rb', line 91

def system_arguments
  @system_arguments
end