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