Class: GovukComponent::Slot
- Inherits:
-
ViewComponent::Slot
- Object
- ViewComponent::Slot
- GovukComponent::Slot
- Defined in:
- app/components/govuk_component/slot.rb
Direct Known Subclasses
Accordion::Section, Header::Item, GovukComponent::SummaryList::Row, Tabs::Tab
Instance Attribute Summary
Attributes included from Traits::CustomHtmlAttributes
Instance Method Summary collapse
-
#initialize(classes: [], html_attributes: {}) ⇒ Slot
constructor
A new instance of Slot.
Methods included from Traits::CustomClasses
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 |