Sha256: bf322264469ffbadf1de8215af98fb85d6fa7a47dceb8f7e3cd8330b3e2161b2
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true module Yattho module Forms module Dsl # :nodoc: class InputGroup include InputMethods attr_reader :builder, :form, :system_arguments def initialize(builder:, form:, **system_arguments) @builder = builder @form = form @system_arguments = system_arguments yield(self) if block_given? end def to_component Group.new(inputs: inputs, builder: builder, form: form, **@system_arguments) end def type :group end def input? true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/yattho/forms/dsl/input_group.rb |
yattho_view_components-0.0.1 | lib/yattho/forms/dsl/input_group.rb |