Issue #6198 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to matz (Yukihiro Matsumoto) This issue is strongly related to #3753. -- Yusuke Endoh <mame / tsg.ne.jp> ---------------------------------------- Feature #6198: public/protected/private with attr_* https://bugs.ruby-lang.org/issues/6198#change-25460 Author: riskwa (riskwa anon) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) 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/