I'm not clear on what is going on, though currently I'm getting errors on the latest version of pry when I try to do anything in a console:
(pry) output error: #<NameError: undefined local variable or method `_pry_' for #<Pry::Pager:0x00007fe77e5c8b50>
It seems like pry_instance is defined as an instance variable when this is run, so respond_to? doesn't pick it up. This change to defined? will work for instance variables AND method definitions to cover our bases.
I'm not clear on what is going on, though currently I'm getting errors on the latest version of pry when I try to do anything in a console:
It seems like
pry_instance
is defined as an instance variable when this is run, sorespond_to?
doesn't pick it up. This change todefined?
will work for instance variables AND method definitions to cover our bases.