From: "headius (Charles Nutter)" <headius@...> Date: 2013-09-26T06:42:02+09:00 Subject: [ruby-core:57374] [ruby-trunk - Feature #8839] Class and module should return the class or module that was opened Issue #8839 has been updated by headius (Charles Nutter). So...if there's no objections, can we get this into 2.1? I think with the new def return value change it really needs to happen. ---------------------------------------- Feature #8839: Class and module should return the class or module that was opened https://bugs.ruby-lang.org/issues/8839#change-41977 Author: headius (Charles Nutter) Status: Open Priority: Normal Assignee: Category: Target version: With the change for https://bugs.ruby-lang.org/issues/3753, "def" forms now return the symbolic name of the method defined. Because class and module bodies just return the last expression in their bodies, this means they will now usually end up returning a symbol for the last method defined. This does not seem useful or correct. I think class and module should return a reference to the class or module just opened. This would make the return value useful and consistent. -- http://bugs.ruby-lang.org/