Sha256: 99360e347a2ab8cedc4727fb00d00623e8376cfdf60aead14ab9a97544cd0389

Contents?: true

Size: 344 Bytes

Versions: 21

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module Quby
  module Answers
    module DSL
      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
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
quby-5.1.1 lib/quby/answers/dsl.rb
quby-5.1.0 lib/quby/answers/dsl.rb
quby-5.0.5 lib/quby/answers/dsl.rb
quby-5.0.4 lib/quby/answers/dsl.rb
quby-5.0.3 lib/quby/answers/dsl.rb
quby-5.0.2 lib/quby/answers/dsl.rb
quby-5.0.1 lib/quby/answers/dsl.rb
quby-5.0.0 lib/quby/answers/dsl.rb
quby-4.0.4 lib/quby/answers/dsl.rb
quby-5.0.0.pre4 lib/quby/answers/dsl.rb
quby-5.0.0.pre3 lib/quby/answers/dsl.rb
quby-5.0.0.pre2 lib/quby/answers/dsl.rb
quby-5.0.0.pre1 lib/quby/answers/dsl.rb
quby-4.0.3 lib/quby/answers/dsl.rb
quby-4.0.2 lib/quby/answers/dsl.rb
quby-4.0.1 lib/quby/answers/dsl.rb
quby-4.0.0 lib/quby/answers/dsl.rb
quby-3.2.2 lib/quby/answers/dsl.rb
quby-3.2.1 lib/quby/answers/dsl.rb
quby-3.2.0 lib/quby/answers/dsl.rb