Wrong #inspect is used in Method#inspect #4995
module Inspect def inspect "nice view!" end end module A extend Inspect def self.a end end A.inspect #=> "nice view!"
I am expecting the same
puts A.method(:a).inspect #=> #<Method: nice view!.a>
This is the behavior in Ruby 2.5.
However, in Jruby it seems as if
# jruby 9.1.7 puts A.method(:a).inspect #=> #<Method: A.a>
The text was updated successfully, but these errors were encountered:
@apotonick Still having trouble confirming the fix? I just ran it against 9.1.16 snapshot and it does indeed seem to be fixed: