Module: Clipboard::Wsl

Extended by:
Wsl
Includes:
Implementation
Included in:
Wsl
Defined in:
lib/clipboard/wsl.rb

Instance Method Summary collapse

Methods included from Implementation

#clear

Instance Method Details

#copy(data) ⇒ Object



15
16
17
18
19
# File 'lib/clipboard/wsl.rb', line 15

def copy(data, **)
  Utils.popen "clip.exe", data

  true
end

#paste(_ = nil) ⇒ Object



11
12
13
# File 'lib/clipboard/wsl.rb', line 11

def paste(_ = nil, **)
  `powershell.exe -Command Get-Clipboard`
end