Class: GOVUKDesignSystemFormBuilder::Containers::CheckBoxes
- Includes:
- Traits::HTMLAttributes, Traits::HTMLClasses
- Defined in:
- lib/govuk_design_system_formbuilder/containers/check_boxes.rb
Instance Method Summary collapse
- #html(&block) ⇒ Object
-
#initialize(builder, small:, **kwargs) ⇒ CheckBoxes
constructor
A new instance of CheckBoxes.
Methods included from Traits::HTMLAttributes
Methods included from Traits::HTMLClasses
Methods inherited from Base
Constructor Details
#initialize(builder, small:, **kwargs) ⇒ CheckBoxes
Returns a new instance of CheckBoxes.
7 8 9 10 11 12 |
# File 'lib/govuk_design_system_formbuilder/containers/check_boxes.rb', line 7 def initialize(builder, small:, **kwargs) super(builder, nil, nil) @small = small @html_attributes = kwargs end |
Instance Method Details
#html(&block) ⇒ Object
14 15 16 |
# File 'lib/govuk_design_system_formbuilder/containers/check_boxes.rb', line 14 def html(&block) tag.div(**attributes(@html_attributes), &block) end |