Module: JLDrill::StoryFunctionality::SampleQuiz

Defined in:
lib/jldrill/spec/storyFunctionality/SampleQuiz.rb

Instance Method Summary collapse

Instance Method Details

#hasDefaultQuizObject



9
10
11
12
# File 'lib/jldrill/spec/storyFunctionality/SampleQuiz.rb', line 9

def hasDefaultQuiz
    @sampleQuiz = JLDrill::SampleQuiz.new
    @mainContext.quiz = @sampleQuiz.defaultQuiz
end

#loadQuizObject



18
19
20
21
22
23
24
# File 'lib/jldrill/spec/storyFunctionality/SampleQuiz.rb', line 18

def loadQuiz
    @sampleQuiz = JLDrill::SampleQuiz.new
    if @mainContext.quiz.loadFromString("SampleQuiz", 
                                        @sampleQuiz.resetFile)
        @mainContext.quiz.drill
    end
end

#quizObject



26
27
28
# File 'lib/jldrill/spec/storyFunctionality/SampleQuiz.rb', line 26

def quiz
    @mainContext.quiz
end

#sampleQuizObject



14
15
16
# File 'lib/jldrill/spec/storyFunctionality/SampleQuiz.rb', line 14

def sampleQuiz
    @sampleQuiz
end