Class: JLDrill::PromptView
- Inherits:
-
Context::View
- Object
- Context::View
- JLDrill::PromptView
- Defined in:
- lib/jldrill/views/test/PromptView.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from Context::View
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(context, title, message) ⇒ PromptView
constructor
A new instance of PromptView.
- #run ⇒ Object
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, title, message) ⇒ PromptView
Returns a new instance of PromptView.
8 9 10 11 12 13 |
# File 'lib/jldrill/views/test/PromptView.rb', line 8 def initialize(context, title, ) super(context) @title = title @message = @response = @context.cancel end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/jldrill/views/test/PromptView.rb', line 6 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/jldrill/views/test/PromptView.rb', line 6 def response @response end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/jldrill/views/test/PromptView.rb', line 6 def title @title end |
Instance Method Details
#destroy ⇒ Object
15 16 17 |
# File 'lib/jldrill/views/test/PromptView.rb', line 15 def destroy # Only in the concrete class end |
#run ⇒ Object
19 20 21 |
# File 'lib/jldrill/views/test/PromptView.rb', line 19 def run # Override in the concrete class end |