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