[ruby-core:113904] [Ruby master Bug#19731] Can’t call an instance method inside an Endless method definition