Project

copyrb

0.01
No commit activity in last 3 years
No release in over 3 years
Copy and paste ruby objects across terminals
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
>= 0
 Project Readme

copyrb¶ ↑

Ruby objects to go. Copy and paste freely across terminals. This is very useful if you want to transfer ActiveRecord objects from one Rails environment to another (to experiment with production data for example).

usage¶ ↑

  • terminal 1:

require ‘copyrb’

a = MyActiveRecord.last

copy a

  • terminal 2:

require ‘copyrb’

paste #=> returns a, now you can do a.save or whatever!

  • If you don’t want to require the gem every time, you can add the following lines to .irbrc

require ‘rubygems’

require ‘copyrb’

Copyright © 2011 Milan Dobrota. See LICENSE.txt for further details.