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.



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

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



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

def method_missing(meth,*args); end

Instance Method Details

#windowClosing(event) ⇒ Object



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

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