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