From: "shugo (Shugo Maeda)" Date: 2013-01-09T10:31:02+09:00 Subject: [ruby-core:51325] [ruby-trunk - Bug #7675] main.protected is not defined Issue #7675 has been updated by shugo (Shugo Maeda). kosaki (Motohiro KOSAKI) wrote: > > Target version: 2.0.0 > > 2.0? I considered it a bug, but if Matz consider it a new feature, feel free to move it to next minor or to reject it simply. ---------------------------------------- Bug #7675: main.protected is not defined https://bugs.ruby-lang.org/issues/7675#change-35294 Author: shugo (Shugo Maeda) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2013-01-07 trunk 38731) [i686-linux] main (self at toplevel) has public and private, but doesn't have protected. public private protected #=> NoMethodError It looks a bit weird. I guess it was forgotten to add main.protected when Module#protected was introduced in Ruby 1.1b9_05. main.protected seems not to be useful because it makes methods of Object protected, but it might be good to have main.protected for consistency. -- http://bugs.ruby-lang.org/