String#<< doesn't call to_str
on objects when they allege to not respond to it.
#1901
Milestone
to_str
on objects when they allege to not respond to it.
#1901
The file:
jruby 1.7.12 (1.9.3p392) 2014-04-15 643e292 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_51-b13 [darwin-x86_64]
ruby 1.9.3p545 (2014-02-24) [x86_64-darwin13.2.0]
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
If, however, I define respond_to?:
Obviously, it's not a great idea to do this, but I think it reality it's pretty common, lots of people define
method_missing
without definingrespond_to
, and I'm pretty sure this is what's causing the currently released version of Pry to be unable to show output forwhereami
andshow-source
(pry/pry#1284)The text was updated successfully, but these errors were encountered: