class Primer::Forms::Caption
:nodoc:
def before_render
def before_render return unless @input.caption? && caption_template? raise <<~MESSAGE Please provide either a caption: argument or caption template for the '#{@input.name}' input; both were found. MESSAGE end
def caption_template?
def caption_template? @input.caption_template? end
def initialize(input:)
def initialize(input:) @input = input end
def render_caption_template
def render_caption_template @input.render_caption_template end