Sha256: 657c285dd987d25cc4056cfb5c17b9c6d14999043527c2d7da9a61bd3a8232ff

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

module GOVUKDesignSystemFormBuilder
  module Elements
    module CheckBoxes
      class Label
        def initialize(builder)
          @builder = builder
        end

        def html
          @builder.label(class: label_classes)
        end

        private

        def label_classes
          %w(govuk-label govuk-checkboxes__label)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
govuk_design_system_formbuilder-0.7.6 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb
govuk_design_system_formbuilder-0.7.5 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb
govuk_design_system_formbuilder-0.7.4 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb
govuk_design_system_formbuilder-0.7.3 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb
govuk_design_system_formbuilder-0.7.2 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb
govuk_design_system_formbuilder-0.7.1 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb
govuk_design_system_formbuilder-0.7.0 lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb