Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Class and Module are duplicable

#6708

In active_support/core_ext/object/duplicable.rb says that either Class and Module are not duplicable.
If you run on the console:

Class.new.duplicable?
 => false 
Module.new.duplicable?
 => false

but, if you do

Class.new.dup
 => #<Class:0x00000102983160>
Module.new.dup
 => #<Module:0x00000102976988>

Also DuplicableTest is not really testing if it raises an Exception.
Marked Class and Module as duplicable (as they are now) and fixed the test.

Reported by Sebastian Martinez · April 18th, 2011 @ 01:19 AM

State: new
Milestone: none
Assigned to: José Valim José Valim
Importance: none

Activity

No comments yet.