From: "Николай" Date: 2011-11-23T22:20:54+09:00 Subject: private and protected Could anybody explain me this, please? class First def say self.phrase end private def phrase 'something' end end a = First.new a.say # got NoMethodError: private method `b' called for # from (irb):44:in `say' from (irb):52 from :0 If i write the same code with 'protected' instead of 'private' I got no error. If i write the same code with calling 'phrase' instead of 'self.phrase' in 'say' method I got no error again.