copy and paste between ruby arrays in irb/rails console and a spreadsheet (tab delimited) and vise versa.
it works on osx, linux and possibly windows.
- install the gem
gem install irbtab
- in your ~/.irbrc add
require 'rubygems' unless defined?(Gem) require 'irbtab'
- now in irb you can do
irbt [['a', 'two dimentional'],['array', 'for your spreadsheet']]
and the array is in your clipboard ready to paste into a spreadsheet.
- if you've copied something from a spreadsheet, in irb you can simply do
to paste it into a ruby array
you can use the commands 'copy' and 'paste' if you love carpal tunnel
windows paste support is via
Based on irbcp by Ara T. Howard