Class: Pasteboard
- Inherits:
-
Object
- Object
- Pasteboard
- Defined in:
- lib/jello/pasteboard.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#gets ⇒ Object
2 3 4 |
# File 'lib/jello/pasteboard.rb', line 2 def gets %x[pbpaste].chomp end |
#puts(something) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/jello/pasteboard.rb', line 6 def puts something out = IO::popen 'pbcopy', 'w+' out.print something out.close something end |