Sha256: 60f30d4d60542b81275f1161085b473a05237049f93f20dd20537c206d2c6a84
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
module GOVUKDesignSystemFormBuilder module Traits module Caption private def caption_element @caption_element ||= Elements::Caption.new( @builder, @object_name, @attribute_name, **{ text: nil }.merge({ text: caption_text, size: caption_size }.compact) ) end def caption_text @caption&.dig(:text) end def caption_size @caption&.dig(:size) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_design_system_formbuilder-1.2.0 | lib/govuk_design_system_formbuilder/traits/caption.rb |
govuk_design_system_formbuilder-1.2.0b4 | lib/govuk_design_system_formbuilder/traits/caption.rb |