Class: Quby::Compiler::DSL::Questions::StringQuestionBuilder
- Includes:
- RegexpValidations, Sizes, Units
- Defined in:
- lib/quby/compiler/dsl/questions/string_question_builder.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(key, **options, &block) ⇒ StringQuestionBuilder
constructor
A new instance of StringQuestionBuilder.
Methods included from Sizes
Methods included from Units
Methods included from RegexpValidations
Methods inherited from Base
#build, #context_free_title, #default_position, #depends_on, #description, #hidden, #presentation, #title, #validates_presence_of_answer
Methods inherited from Base
Methods included from Helpers
#check_question_keys_uniqueness, #image_alt, #image_tag, #video_tag
Constructor Details
#initialize(key, **options, &block) ⇒ StringQuestionBuilder
Returns a new instance of StringQuestionBuilder.
12 13 14 15 |
# File 'lib/quby/compiler/dsl/questions/string_question_builder.rb', line 12 def initialize(key, **, &block) super @question = Entities::Questions::StringQuestion.new(key, ) end |