Class: JLDrill::PromptForSaveContext
- Inherits:
-
PromptContext
- Object
- Context::Context
- PromptContext
- JLDrill::PromptForSaveContext
- Defined in:
- lib/jldrill/contexts/PromptForSaveContext.rb
Instance Attribute Summary
Attributes inherited from PromptContext
#cancel, #message, #no, #response, #title, #yes
Attributes inherited from Context::Context
#mainView, #parent, #viewBridge
Instance Method Summary collapse
- #createViews ⇒ Object
-
#initialize(viewBridge) ⇒ PromptForSaveContext
constructor
A new instance of PromptForSaveContext.
Methods inherited from PromptContext
Methods inherited from Context::Context
#addView, #destroyViews, #enter, #exit, #isEntered?, #onExit, #peekAtView, #setupViews
Constructor Details
#initialize(viewBridge) ⇒ PromptForSaveContext
Returns a new instance of PromptForSaveContext.
8 9 10 |
# File 'lib/jldrill/contexts/PromptForSaveContext.rb', line 8 def initialize(viewBridge) super(viewBridge) end |
Instance Method Details
#createViews ⇒ Object
12 13 14 15 16 |
# File 'lib/jldrill/contexts/PromptForSaveContext.rb', line 12 def createViews @title = "Unsaved Changes" @message = "You have unsaved changes\nDo you want to save?" super end |