Class: JLDrill::ShowInfoContext::InfoView

Inherits:
Context::View show all
Defined in:
lib/jldrill/contexts/ShowInfoContext.rb

Direct Known Subclasses

Gtk::InfoView, InfoView

Instance Attribute Summary

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from Context::View

#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ InfoView

Returns a new instance of InfoView.



16
17
18
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 16

def initialize(context)
    super(context)
end

Instance Method Details

#destroyObject

Destroy the info window



21
22
23
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 21

def destroy
    # Please define in the concrete class
end

#run(info) ⇒ Object

Display the info to the user



26
27
28
29
30
# File 'lib/jldrill/contexts/ShowInfoContext.rb', line 26

def run(info)
    @info = info
    # Please run super() and then define the rest
    # of the method in the concrete class
end