[ruby-core:111107] [Ruby master Bug#18751] Regression on master for Method#== when comparing public with private method