Module: Authentic::Clipboard
- Defined in:
- lib/authentic/clipboard.rb
Class Method Summary collapse
Class Method Details
.pbcopy(input) ⇒ Object
3 4 5 6 7 |
# File 'lib/authentic/clipboard.rb', line 3 def pbcopy(input) str = input.to_s IO.popen('pbcopy', 'w') { |f| f << str } str end |
.pbpaste ⇒ Object
9 10 11 |
# File 'lib/authentic/clipboard.rb', line 9 def pbpaste `pbpaste` end |