Class: JLDrill::PromptForSaveContext

Inherits:
PromptContext show all
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

Methods inherited from PromptContext

#destroyViews, #enter

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

#createViewsObject



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