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.



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

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



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

def method_missing(meth,*args); end

Instance Method Details

#windowClosing(event) ⇒ Object



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

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