[ruby-core:114169] [Ruby master Bug#19749] Confirm correct behaviour when attaching private method with `#define_method`