Methods

Class/Module Index [+]

Quicksearch

SampleClass

Public Instance Methods

invoke() click to toggle source
# File gtk2/sample/testgtk/sample.rb, line 24
def invoke
  @singleton = nil unless defined? @singleton
  @singleton = new if @singleton.nil? or @singleton.destroyed?
  unless @singleton.visible?
    @singleton.show_all
  else
    @singleton.destroy
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.