
25 Feb
2023
25 Feb
'23
3:08 a.m.
Issue #19466 has been updated by ioquatix (Samuel Williams). Ahh, so why does `EnvUtil` not use this? Maybe it's legacy? ---------------------------------------- Feature #19466: Class.new takes a block, why doesn't Module.new take a block? https://bugs.ruby-lang.org/issues/19466#change-102037 * Author: ioquatix (Samuel Williams) * Status: Open * Priority: Normal ---------------------------------------- ```ruby Class.new do #... equivalent to class_eval end ``` So, why don't we introduce: ```ruby Module.new do #... equivalent to class_eval end ``` -- https://bugs.ruby-lang.org/