Class: JLDrill::ShowInfoContext::InfoView
- Inherits:
-
Context::View
- Object
- Context::View
- JLDrill::ShowInfoContext::InfoView
- Defined in:
- lib/jldrill/contexts/ShowInfoContext.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Context::View
Instance Method Summary collapse
-
#destroy ⇒ Object
Destroy the info window.
-
#initialize(context) ⇒ InfoView
constructor
A new instance of InfoView.
-
#run(info) ⇒ Object
Display the info to the user.
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ InfoView
Returns a new instance of InfoView.
16 17 18 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 16 def initialize(context) super(context) end |
Instance Method Details
#destroy ⇒ Object
Destroy the info window
21 22 23 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 21 def destroy # Please define in the concrete class end |
#run(info) ⇒ Object
Display the info to the user
26 27 28 29 30 |
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 26 def run(info) @info = info # Please run super() and then define the rest # of the method in the concrete class end |