Sha256: 44ff23149158ba6e51aeeb8649d5c3feeebfabd640b404ff70a8c0597c4fb8b7
Contents?: true
Size: 413 Bytes
Versions: 28
Compression:
Stored size: 413 Bytes
Contents
class Wx::Clipboard class << self # 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. def open clip = Wx::Clipboard.new unless clip.open Kernel.raise "Could not open clipboard" end yield clip ensure clip.close end end end
Version data entries
28 entries across 28 versions & 2 rubygems