Class method to provide access to the clipboard within a ruby block. Tests that the clipboard could be accessed, and ensures that it is closed when the block is finished.
# File wx/classes/clipboard.rb, line 6 def open clip = Wx::Clipboard.new unless clip.open Kernel.raise "Could not open clipboard" end yield clip ensure clip.close end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.