Class: Quby::Compiler::DSL::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/quby/compiler/dsl/base.rb

Direct Known Subclasses

PanelBuilder, Questions::Base, ScoreSchemaBuilder

Class Method Summary collapse

Methods included from Helpers

#check_question_keys_uniqueness, #image_alt, #image_tag, #video_tag

Class Method Details

.build(*args, **kwargs, &block) ⇒ Object



12
13
14
15
16
# File 'lib/quby/compiler/dsl/base.rb', line 12

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