Sha256: b8ef70d46214b6bfc3a6a632fc532b53f7746a8980accabb62d2d22c2d0a1e74

Contents?: true

Size: 404 Bytes

Versions: 9

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

require 'quby/questionnaires/dsl/helpers'
require 'quby/questionnaires/dsl/calls_custom_methods'

module Quby
  module Questionnaires
    module DSL
      class Base
        include Helpers

        def self.build(*args, &block)
          builder = new(*args)
          builder.instance_eval(&block) if block
          builder.build
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
quby-4.0.4 lib/quby/questionnaires/dsl/base.rb
quby-4.0.3 lib/quby/questionnaires/dsl/base.rb
quby-4.0.2 lib/quby/questionnaires/dsl/base.rb
quby-4.0.1 lib/quby/questionnaires/dsl/base.rb
quby-4.0.0 lib/quby/questionnaires/dsl/base.rb
quby-3.2.2 lib/quby/questionnaires/dsl/base.rb
quby-3.2.1 lib/quby/questionnaires/dsl/base.rb
quby-3.2.0 lib/quby/questionnaires/dsl/base.rb
quby-3.2.0.pre.pre1 lib/quby/questionnaires/dsl/base.rb