Class: JLDrill::PromptForDeleteContext
- Inherits:
-
PromptContext
- Object
- Context::Context
- PromptContext
- JLDrill::PromptForDeleteContext
- Defined in:
- lib/jldrill/contexts/PromptForDeleteContext.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) ⇒ PromptForDeleteContext
constructor
A new instance of PromptForDeleteContext.
Methods inherited from PromptContext
Methods inherited from Context::Context
#addView, #destroyViews, #enter, #exit, #isEntered?, #onExit, #peekAtView, #setupViews
Constructor Details
#initialize(viewBridge) ⇒ PromptForDeleteContext
8 9 10 |
# File 'lib/jldrill/contexts/PromptForDeleteContext.rb', line 8 def initialize(viewBridge) super(viewBridge) end |
Instance Method Details
#createViews ⇒ Object
12 13 14 15 16 |
# File 'lib/jldrill/contexts/PromptForDeleteContext.rb', line 12 def createViews @title = "Delete?" @message = "Deleting an item can not be undone\nDo you really want to delete this item?" super() end |