# frozen_string_literal: true module Ariadne # :nodoc: module Form def self.inline_form(builder, base = nil, &block) base ||= defined?(ApplicationForm) ? ApplicationForm : Ariadne::Forms::Base klass = Class.new(base) do form(&block) end klass.new(builder) end end end