Commit Graph

2 Commits

Author SHA1 Message Date
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