[ruby-core:122894] [Ruby Bug#21525] Inconsistent execution order for methods with constant blocks