Skip to content

Instantly share code, notes, and snippets.

@famulus
Created February 26, 2013 19:35
Show Gist options
  • Save famulus/5041407 to your computer and use it in GitHub Desktop.
Save famulus/5041407 to your computer and use it in GitHub Desktop.
NAME
irbtab
DESCRIPTION
irbtab allows you to copy and paste from irb arrays to a spreadsheet (tab delimited)
it works on osx, linux and possibly windows.
SYNOPSIS
0) install the gem
gem install irbtab
1) in your .irbrc do
require 'rubygems' unless defined?(Gem)
require 'irbtab'
2) now in irb you could do
irbt [['a', 'two dimentional'],['array', 'for your spreadsheet']]
3) if you've copied something from a spreadsheet you can simply do
irbt
to paste it into an ruby array in irb
NOTES
- you can use the commands 'copy' and 'paste' if you love carpal tunnel
- windows past support is via
http://www.c3scripts.com/tutorials/msdos/paste.html#exe
LICENSE
MIT License
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment