vr2000
0
Q:

copy to clipboard in ruby in windows

def pbcopy(input)
 str = input.to_s
 IO.popen('clip', 'w') { |f| f << str }
 str
end

def pbpaste
 `pbpaste`
end
0

Tags

New to Communities?

Join the community