Class: JLDrill::PromptView

Inherits:
Context::View show all
Defined in:
lib/jldrill/views/test/PromptView.rb

Instance Attribute Summary collapse

Attributes inherited from Context::View

#context

Instance Method Summary collapse

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, message)
	super(context)
	@title = title
	@message = message
	@response = @context.cancel
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/jldrill/views/test/PromptView.rb', line 6

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/jldrill/views/test/PromptView.rb', line 6

def response
  @response
end

#titleObject (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

#destroyObject



15
16
17
# File 'lib/jldrill/views/test/PromptView.rb', line 15

def destroy
    # Only in the concrete class
end

#runObject



19
20
21
# File 'lib/jldrill/views/test/PromptView.rb', line 19

def run
    # Override in the concrete class
end