Project

pry-drb

0.0
No commit activity in last 3 years
No release in over 3 years
Uses DRb to let you stash variables across pry sessions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Pry DRb gives you a way to keep variables alive across pry sessions!

Installation

For just vanilla Rubygems: 'gem install pry-drb'

If you're using Bundler:

group :development do
  gem 'pry'
  gem 'pry-drb'
end

Usage

  1. Run the pry-drb daemon:
$ pry-drb
  1. Inside Pry, you can then store values in DRB:
pry(main) [1]> DRB[:awesome] = 5
=> 5
  1. In another Pry, you can then access that value!:
pry(main) [1]> DRB[:awesome]
=> 5

Objects that you put into DRb can be accessed in other Pry sessions running at the same time, or even by a Pry that open later in the day!

If you need to stop the DRb server you can run pry-drb stop. This will throw away anything you've stored in DRB from within Pry.

Meta-foo

pry-drb is licensed under the MIT licence. See LICENCE.MIT for details.

Issues and pull requests are welcome!