Sha256: de82aefd7dedfd8291977ae0f1654405caf29beb88c41dd4c5c2c181dff8e992
Contents?: true
Size: 732 Bytes
Versions: 30
Compression:
Stored size: 732 Bytes
Contents
# frozen_string_literal: true module Primer module Forms module Dsl # :nodoc: class FormReferenceInput < Input attr_reader :ref_block, :fields_for_args, :fields_for_kwargs def initialize(*fields_for_args, builder:, form:, **fields_for_kwargs, &block) @fields_for_args = fields_for_args @fields_for_kwargs = fields_for_kwargs @ref_block = block super(builder: builder, form: form, **fields_for_kwargs) end def to_component FormReference.new(input: self) end def name nil end def label nil end def type :form end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems