Class: JLDrill::Test::ItemHintView
- Inherits:
-
DisplayProblemContext::ProblemView::ItemHintView
- Object
- Context::View
- DisplayProblemContext::ProblemView::ItemHintView
- JLDrill::Test::ItemHintView
- Defined in:
- lib/jldrill/views/test/ItemHintView.rb
Overview
The ItemHintView displays information about the current item that acts as hints for the user. For instance, it might indicate that the word is intrasitive, or a suru noun, etc.
Instance Attribute Summary collapse
-
#newProblem(problem) ⇒ Object
Returns the value of attribute newProblem.
-
#problemUpdated ⇒ Object
Returns the value of attribute problemUpdated.
Attributes inherited from Context::View
Instance Method Summary collapse
-
#initialize(context) ⇒ ItemHintView
constructor
A new instance of ItemHintView.
- #updateProblem(problem) ⇒ Object
Methods inherited from DisplayProblemContext::ProblemView::ItemHintView
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ ItemHintView
Returns a new instance of ItemHintView.
13 14 15 16 |
# File 'lib/jldrill/views/test/ItemHintView.rb', line 13 def initialize(context) super(context) @newProblem = false end |
Instance Attribute Details
#newProblem(problem) ⇒ Object
Returns the value of attribute newProblem.
10 11 12 |
# File 'lib/jldrill/views/test/ItemHintView.rb', line 10 def newProblem @newProblem end |
#problemUpdated ⇒ Object
Returns the value of attribute problemUpdated.
10 11 12 |
# File 'lib/jldrill/views/test/ItemHintView.rb', line 10 def problemUpdated @problemUpdated end |
Instance Method Details
#updateProblem(problem) ⇒ Object
22 23 24 25 |
# File 'lib/jldrill/views/test/ItemHintView.rb', line 22 def updateProblem(problem) @newProblem = false @problemUpdated = true end |