Actions
Feature #11905
closedChange the 'class' keyword to return a symbol
Status:
Closed
Assignee:
-
Target version:
-
Description
Currently the class
keyword returns nil:
class Person; end # => nil
It would be great if it could return a symbol instead:
class Person; end # => :Person
If we make it so we'll be able to do something like below:
private_constant class User
...
end
Actions
Like0
Like0Like0Like0