Sha256: f9c6c1a0d2b6e465c2dea7b8e3f60a0e45924cbc362ce8127f8679828a5c83f2
Contents?: true
Size: 515 Bytes
Versions: 6
Compression:
Stored size: 515 Bytes
Contents
module GOVUKDesignSystemFormBuilder module Elements module CheckBoxes class Label < GOVUKDesignSystemFormBuilder::Base def initialize(builder, object_name, attribute_name, value:) super(builder, object_name, attribute_name) @value = value end def html @builder.label(for: field_id, class: label_classes) end private def label_classes %w(govuk-label govuk-checkboxes__label) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems