class Object
Public Instance Methods
pbcopy(str)
click to toggle source
Puts str
into the pasteboard (Mac only)
# File lib/harvest_submit.rb, line 7 def pbcopy(str) return unless RUBY_PLATFORM =~ /darwin/ `echo "#{str.strip}" | pbcopy` end