1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

3 commits

Author SHA1 Message Date
Ryan Fitzgerald
62a684b9d9 Rewrite cd tests to drive pry instance directly 2012-08-04 15:11:32 -07:00
John Mair
e5bef51789 added Pry.config.extra_sticky_locals config option
* Pry.config.extra_sticky_locals[:random] = proc { rand(10) }
* alternatively, Pry.start binding, :extra_sticky_locals => { :random => proc { rand(10) } }
* updated tests
2012-03-14 15:35:24 +13:00
John Mair
607fd65398 added sticky local API (renamed special -> sticky)
* 'special locals' are now called 'sticky locals'
* removed initialize_special_locals method, no longer necessary
* added Pry#add_sticky_local, for user-defined sticky locals
* sticky locals that are defined with a Proc will be re-invoked on each repl tick
2012-03-04 03:22:52 +13:00