General
Gems
- Seeing Is Believing
- Surrogate
- Mountain Berry Fields
- Deject
- Pbcopy
- LetterPress Is Not As Good As Boggle
- Haiti
Web Based
Pbcopy
Makes pbcopy available in Ruby
On the mac command line, there is a unix utility that you can use to copy to the pasteboard.
which ruby | pbcopy
I use this often, and wound up wishing I had access to it in the terminal. So I made the pbcopy gem.
It defines String#|
and Object#pbcopy
, and can be used like this:
# in Ruby, will copy the version into the pasteboard RUBY_VERSION | pbcopy # "redirect" any object into the pasteboard pbcopy < [1, 2, 3]
I use it for things like copying login credentials into the pasteboard after making a user in the Rails console, so that I can go to the site and log in.
Code is on github.