Sha256: a3216bf736f4299a19934142e59c0c1f97989e30c518ebf62079de28e00b2c3e
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
# frozen_string_literal: true require_relative "implementation" module Clipboard module Cygwin include Implementation extend self def paste(_ = nil, **) ::File.read("/dev/clipboard") end def copy(data, **) ::File.open("/dev/clipboard", "w"){ |f| f.write(data) } true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clipboard-2.0.0 | lib/clipboard/cygwin.rb |