Module: Quby::Answers::DSL

Defined in:
lib/quby/answers/dsl.rb

Class Method Summary collapse

Class Method Details

.enhance(target_instance) ⇒ Object



6
7
8
9
10
11
# File 'lib/quby/answers/dsl.rb', line 6

def self.enhance(target_instance)
  answer = target_instance
  questionnaire = target_instance.questionnaire
  answer.dsl_last_update = questionnaire.last_update
  answer.extend(questionnaire.answer_dsl_module)
end