Issue #6198 has been updated by mame (Yusuke Endoh). Target version set to next minor ---------------------------------------- Feature #6198: public/protected/private with attr_* https://bugs.ruby-lang.org/issues/6198#change-33273 Author: riskwa (riskwa anon) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor 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/