Answers for "copy to clipboard in ruby in windows"

0

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
Posted by: Guest on July-10-2020

Code answers related to "copy to clipboard in ruby in windows"

Browse Popular Code Answers by Language