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