Class: ImageVoodoo::WindowClosed

Inherits:
Object
  • Object
show all
Defined in:
lib/image_voodoo/awt.rb

Overview

Internal class for closing preview window

Instance Method Summary collapse

Constructor Details

#initialize(block = nil) ⇒ WindowClosed

Returns a new instance of WindowClosed.



79
80
81
# File 'lib/image_voodoo/awt.rb', line 79

def initialize(block = nil)
  @block = block || proc { java.lang.System.exit(0) }
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ Object



82
# File 'lib/image_voodoo/awt.rb', line 82

def method_missing(meth,*args); end

Instance Method Details

#windowClosing(event) ⇒ Object



83
# File 'lib/image_voodoo/awt.rb', line 83

def windowClosing(event); @block.call; end