Class: JLDrill::Test::VocabularyView
- Inherits:
-
ModifyVocabularyContext::VocabularyView
- Object
- Context::View
- ModifyVocabularyContext::VocabularyView
- JLDrill::Test::VocabularyView
- Defined in:
- lib/jldrill/views/test/VocabularyView.rb
Instance Attribute Summary collapse
-
#destroyed ⇒ Object
Returns the value of attribute destroyed.
-
#searchUpdated ⇒ Object
Returns the value of attribute searchUpdated.
-
#vocabularyCleared ⇒ Object
Returns the value of attribute vocabularyCleared.
Attributes inherited from ModifyVocabularyContext::VocabularyView
Attributes inherited from Context::View
Instance Method Summary collapse
- #clearVocabulary ⇒ Object
- #destroy ⇒ Object
- #getVocabulary ⇒ Object
-
#initialize(context, name) ⇒ VocabularyView
constructor
A new instance of VocabularyView.
- #updateSearch ⇒ Object
Methods inherited from ModifyVocabularyContext::VocabularyView
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, name) ⇒ VocabularyView
Returns a new instance of VocabularyView.
9 10 11 12 13 14 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 9 def initialize(context, name) super(context, name) @destroyed = false @searchUpdated = false @vocabularyCleared = false end |
Instance Attribute Details
#destroyed ⇒ Object
Returns the value of attribute destroyed.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 6 def destroyed @destroyed end |
#searchUpdated ⇒ Object
Returns the value of attribute searchUpdated.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 6 def searchUpdated @searchUpdated end |
#vocabularyCleared ⇒ Object
Returns the value of attribute vocabularyCleared.
6 7 8 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 6 def vocabularyCleared @vocabularyCleared end |
Instance Method Details
#clearVocabulary ⇒ Object
28 29 30 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 28 def clearVocabulary @vocabularyCleared = true end |
#destroy ⇒ Object
16 17 18 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 16 def destroy @destroyed = true end |
#getVocabulary ⇒ Object
24 25 26 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 24 def getVocabulary # Not sure how to test this yet end |
#updateSearch ⇒ Object
20 21 22 |
# File 'lib/jldrill/views/test/VocabularyView.rb', line 20 def updateSearch @searchUpdated = true end |