Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #clipboard #ruby #windows
ADD COMMENT
Topic
Name
6+1 =