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(**kwargs) ⇒ Actions

Returns a new instance of Actions.



70
71
72
73
74
# File 'app/components/primer/subhead_component.rb', line 70

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

Instance Attribute Details

#kwargsObject (readonly)

Returns the value of attribute kwargs.



68
69
70
# File 'app/components/primer/subhead_component.rb', line 68

def kwargs
  @kwargs
end