Project

General

Profile

Actions

Feature #19466

closed

Class.new takes a block, why doesn't Module.new take a block?

Added by ioquatix (Samuel Williams) almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:112585]

Description

Class.new do
  #... equivalent to class_eval
end

So, why don't we introduce:

Module.new do
  #... equivalent to class_eval
end
Actions

Also available in: Atom PDF

Like0
Like1Like0Like1