Class: JLDrill::Gtk::QuizStatusView
- Inherits:
-
DisplayQuizStatusContext::QuizStatusView
- Object
- Context::View
- DisplayQuizStatusContext::QuizStatusView
- JLDrill::Gtk::QuizStatusView
- Defined in:
- lib/jldrill/views/gtk/QuizStatusView.rb
Instance Attribute Summary collapse
-
#quizStatusBar ⇒ Object
readonly
Returns the value of attribute quizStatusBar.
Attributes inherited from Context::View
Instance Method Summary collapse
- #getWidget ⇒ Object
-
#initialize(context) ⇒ QuizStatusView
constructor
A new instance of QuizStatusView.
- #update(quiz) ⇒ Object
Methods inherited from Context::View
#addView, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ QuizStatusView
Returns a new instance of QuizStatusView.
12 13 14 15 16 17 |
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 12 def initialize(context) super(context) @quizStatusBar = QuizStatusBar.new(self) @quizStatusBar. @verified = nil end |
Instance Attribute Details
#quizStatusBar ⇒ Object (readonly)
Returns the value of attribute quizStatusBar.
10 11 12 |
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 10 def quizStatusBar @quizStatusBar end |
Instance Method Details
#getWidget ⇒ Object
19 20 21 |
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 19 def getWidget @quizStatusBar end |
#update(quiz) ⇒ Object
23 24 25 |
# File 'lib/jldrill/views/gtk/QuizStatusView.rb', line 23 def update(quiz) @quizStatusBar.update(quiz.status) end |