Class: GovukComponent::Slot

Inherits:
ViewComponent::Slot
  • Object
show all
Includes:
Traits::CustomClasses, Traits::CustomHtmlAttributes
Defined in:
app/components/govuk_component/slot.rb

Instance Attribute Summary

Attributes included from Traits::CustomHtmlAttributes

#html_attributes

Instance Method Summary collapse

Methods included from Traits::CustomClasses

#classes, #default_classes

Constructor Details

#initialize(classes: [], html_attributes: {}) ⇒ Slot

Returns a new instance of Slot.



5
6
7
8
# File 'app/components/govuk_component/slot.rb', line 5

def initialize(classes: [], html_attributes: {})
  @classes         = parse_classes(classes)
  @html_attributes = html_attributes
end