Salin ke clipboard di ruby di windows
def pbcopy(input)
str = input.to_s
IO.popen('clip', 'w') { |f| f << str }
str
end
def pbpaste
`pbpaste`
end
victormoove
def pbcopy(input)
str = input.to_s
IO.popen('clip', 'w') { |f| f << str }
str
end
def pbpaste
`pbpaste`
end