[ruby-core:121899] [Ruby Bug#21267] respond_to check in Class#allocate is inconsistent