From: "riskwa (riskwa anon)" Date: 2012-03-25T02:58:59+09:00 Subject: [ruby-core:43589] [ruby-trunk - Feature #6198][Open] public/protected/private with attr_* Issue #6198 has been reported by riskwa (riskwa anon). ---------------------------------------- Feature #6198: public/protected/private with attr_* https://bugs.ruby-lang.org/issues/6198 Author: riskwa (riskwa anon) Status: Open Priority: Normal Assignee: Category: core Target version: 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 -- http://bugs.ruby-lang.org/