Sha256: 0407824a5c110cd5b72b142dab2609cb861ff8ceef0b05538472dc46e9375d34
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# encoding: utf-8 require 'Context/Context' require 'Context/Bridge' require 'jldrill/model/Config' require 'jldrill/contexts/LoadQuizContext' require 'jldrill/contexts/MergeQuizContext' module JLDrill class AppendFileContext < Context::Context def initialize(viewBridge) super(viewBridge) @loadQuizContext = LoadQuizContext.new(@viewBridge) @mergeQuizContext = MergeQuizContext.new(@viewBridge) end def createViews @mainView = @viewBridge.VBoxView.new(self) end def destroyViews @mainView = nil end def exitAppendFileContext self.exit end def enter(parent, quiz) super(parent) newQuiz = Quiz.new @loadQuizContext.onExit do @mergeQuizContext.onExit do exitAppendFileContext end @mergeQuizContext.enter(self, quiz, newQuiz) end @loadQuizContext.enter(self, newQuiz) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/contexts/AppendFileContext.rb |