[ruby/irb] Changed to call Kernel.print
If you call binding.irb on a class defined #print, it will crash, so call Kernel.print.
binding.irb
#print
Kernel.print
Fix [Bug #18389] binding.irb can fail in some classes that implement context and print methods.
context
print
https://github.com/ruby/irb/commit/d54b271984
[ruby/irb] Changed to call Kernel.print
If you call
binding.irb
on a class defined#print
, it will crash, so callKernel.print
.Fix [Bug #18389]
binding.irb
can fail in some classes that implementcontext
andprint
methods.https://github.com/ruby/irb/commit/d54b271984