DFE-Digital/govuk-formbuilder

View on GitHub
lib/govuk_design_system_formbuilder/traits/supplemental.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module GOVUKDesignSystemFormBuilder
  module Traits
    module Supplemental
      def supplemental_id
        return if @block_content.blank?

        build_id('supplemental')
      end

    private

      def supplemental_content
        @supplemental_content ||= Containers::Supplemental.new(*bound, @block_content)
      end
    end
  end
end