Class: JLDrill::ShowAboutContext
- Inherits:
-
Context::Context
- Object
- Context::Context
- JLDrill::ShowAboutContext
- Defined in:
- lib/jldrill/contexts/ShowAboutContext.rb
Defined Under Namespace
Classes: AboutView
Instance Attribute Summary
Attributes inherited from Context::Context
#mainView, #parent, #viewBridge
Instance Method Summary collapse
- #createViews ⇒ Object
- #destroyViews ⇒ Object
- #enter(parent) ⇒ Object
-
#initialize(viewBridge) ⇒ ShowAboutContext
constructor
A new instance of ShowAboutContext.
Methods inherited from Context::Context
#addView, #exit, #isEntered?, #onExit, #peekAtView, #setupViews
Constructor Details
#initialize(viewBridge) ⇒ ShowAboutContext
Returns a new instance of ShowAboutContext.
11 12 13 |
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 11 def initialize(viewBridge) super(viewBridge) end |
Instance Method Details
#createViews ⇒ Object
28 29 30 |
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 28 def createViews @mainView = @viewBridge.AboutView.new(self, AboutInfo.new) end |
#destroyViews ⇒ Object
32 33 34 |
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 32 def destroyViews @mainView = nil end |
#enter(parent) ⇒ Object
36 37 38 39 40 |
# File 'lib/jldrill/contexts/ShowAboutContext.rb', line 36 def enter(parent) super(parent) @mainView.run self.exit end |