Actions
Feature #6198
closedpublic/protected/private with attr_*
Description
I'd like to set visibility like this:
class X
protected attr_accessor :x, :y
end
attached patch(for 1.9.3-p125) is sample implementation (it seems to pass test-all)
- make attr_* to return array of method-symbols which attr_* concerns (e.g. [:x, :x=, :y, :y=])
- make public/protected/private to accept array of symbols
Files
Actions
Like0
Like0Like0Like0Like0