class Testing def pub; end private def priv; end def notpriv; end def notpriv2; end def notpriv?; end protected def prot; end public def pub2; end public :notpriv, 'notpriv2', :notpriv? end