Sha256: a108ee36a3da2b886390ba2f34336dd2e944dee088fe41b50a5ee3767734e214
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Yattho module Forms module Dsl # :nodoc: class FormObject include InputMethods attr_reader :builder, :form def initialize(builder:, form:) @builder = builder @form = form yield(self) if block_given? end def group(**options, &block) add_input InputGroup.new(builder: @builder, form: @form, **options, &block) 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/form_object.rb |
yattho_view_components-0.0.1 | lib/yattho/forms/dsl/form_object.rb |