From: mail@... Date: 2015-12-28T08:14:27+00:00 Subject: [ruby-core:72548] [Ruby trunk - Feature #11905] [Closed] Change the 'class' keyword to return a symbol Issue #11905 has been updated by Yuki Nishijima. Status changed from Open to Closed I am totally aware of the current behaviour that you mentioned, but I'll close this issue since this is a duplicate. ---------------------------------------- Feature #11905: Change the 'class' keyword to return a symbol https://bugs.ruby-lang.org/issues/11905#change-55811 * Author: Yuki Nishijima * Status: Closed * Priority: Normal * Assignee: ---------------------------------------- Currently the `class` keyword returns nil: ```ruby class Person; end # => nil ``` It would be great if it could return a symbol instead: ```ruby class Person; end # => :Person ``` If we make it so we'll be able to do something like below: ```ruby private_constant class User ... end ``` -- https://bugs.ruby-lang.org/ Unsubscribe: