1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib
robert 21d4c1ddf9 support BasicObject instance's as value in Pry#inject_local
before:
[6] pry(main)> _pry_.inject_local :foo, BasicObject.new, Pry.toplevel_binding
NoMethodError: undefined method `is_a?' for #<BasicObject:0x007fbb49f1a048>
from /Users/giorgio/code/pry/lib/pry/pry_instance.rb:151:in `inject_local'
[7] pry(main)> exit

after:
[3] pry(main)> _pry_.inject_local :foo, BasicObject.new, Pry.toplevel_binding
=> #<BasicObject:0x3fc186707a4c>
[4] pry(main)> foo
=> #<BasicObject:0x3fc186707a4c>
2014-04-27 14:13:20 -07:00
..
pry support BasicObject instance's as value in Pry#inject_local 2014-04-27 14:13:20 -07:00
pry.rb add 'list-inspectors' & 'change-inspectors' commands. 2014-03-23 09:21:17 +01:00