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/