From: nobu@... Date: 2015-12-28T08:08:59+00:00 Subject: [ruby-core:72547] [Ruby trunk - Feature #11905] Change the 'class' keyword to return a symbol Issue #11905 has been updated by Nobuyoshi Nakada. It returns the last value inside the block, as well as `begin`/`end` block, not `nil`. ---------------------------------------- Feature #11905: Change the 'class' keyword to return a symbol https://bugs.ruby-lang.org/issues/11905#change-55810 * Author: Yuki Nishijima * Status: Open * 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: