Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
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>
@apotonick Still having trouble confirming the fix? I just ran it against 9.1.16 snapshot and it does indeed seem to be fixed: