Class: ImageVoodoo::WindowClosed
- Inherits:
-
Object
- Object
- ImageVoodoo::WindowClosed
- Defined in:
- lib/image_voodoo/awt.rb
Overview
Internal class for closing preview window
Instance Method Summary collapse
-
#initialize(block = nil) ⇒ WindowClosed
constructor
A new instance of WindowClosed.
- #method_missing(meth, *args) ⇒ Object
- #windowClosing(event) ⇒ Object
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 |