Sha256: 565805e73341fdcde164a64c670f29fdedc92ddf7a3923be7f7b707099ed7512
Contents?: true
Size: 466 Bytes
Versions: 7
Compression:
Stored size: 466 Bytes
Contents
# original clipboard code: http://project.ioni.st/post/1334#snippet_1334 # turned it into a class to make it flexxy: # http://gilesbowkett.blogspot.com/2007/09/improved-auto-pastie-irb-code.html class MacClipboard if :macosx == Platform::IMPL class << self def read IO.popen('pbpaste') {|clipboard| clipboard.read} end def write(stuff) IO.popen('pbcopy', 'w+') {|clipboard| clipboard.write(stuff)} end end end end
Version data entries
7 entries across 7 versions & 1 rubygems