method

private

v1_8_7_72 - Show latest stable - Class: Module
private(...)
public

With no arguments, sets the default visibility for subsequently defined methods to private. With arguments, sets the named methods to have private visibility.

   module Mod
     def a()  end
     def b()  end
     private
     def c()  end
     private :a
   end
   Mod.private_instance_methods   #=> ["a", "c"]