Module: Clipboard::Cygwin
- Extended by:
- Cygwin
- Includes:
- Implementation
- Included in:
- Cygwin
- Defined in:
- lib/clipboard/cygwin.rb
Instance Method Summary collapse
Methods included from Implementation
Instance Method Details
#copy(data) ⇒ Object
14 15 16 17 18 |
# File 'lib/clipboard/cygwin.rb', line 14 def copy(data, **) ::File.open("/dev/clipboard", "w"){ |f| f.write(data) } true end |
#paste(_ = nil) ⇒ Object
10 11 12 |
# File 'lib/clipboard/cygwin.rb', line 10 def paste(_ = nil, **) ::File.read("/dev/clipboard") end |