private_constant

mod.private_constant(symbol, ...) => mod Instance Public methods Makes a list of existing constants private.

private_instance_methods

mod.private_instance_methods(include_super=true) â array Instance Public methods Returns a list of the private instance methods defined in mod. If the optional parameter is not false, the methods of any ancestors are included. module Mod def method1() end private :method1 def method2() end end Mod.instance_methods #=> [:method2] Mod.private_instance_methods #=> [:method1]

private_method_defined?

mod.private_method_defined?(symbol) â true or false Instance Public methods Returns true if the named private method is defined by _ mod_ (or its included modules and, if mod is a class, its ancestors). module A def method1() end end class B private def method2() end end class C < B include A def method3() end end A.method_defined? :method1 #=> true C.private_method_defined? "method1" #=> false C.private_method_defined? "method2" #=> tru

protected_instance_methods

mod.protected_instance_methods(include_super=true) â array Instance Public methods Returns a list of the protected instance methods defined in mod. If the optional parameter is not false, the methods of any ancestors are included.

protected_method_defined?

mod.protected_method_defined?(symbol) â true or false Instance Public methods Returns true if the named protected method is defined by mod (or its included modules and, if mod is a class, its ancestors). module A def method1() end end class B protected def method2() end end class C < B include A def method3() end end A.method_defined? :method1 #=> true C.protected_method_defined? "method1" #=> false C.protected_method_defined? "method2" #=

psych_yaml_as

psych_yaml_as(url) Instance Public methods Also aliased as: yaml_as

public_class_method

mod.public_class_method(symbol, ...) â mod Instance Public methods Makes a list of existing class methods public.

public_constant

mod.public_constant(symbol, ...) => mod Instance Public methods Makes a list of existing constants public.

public_instance_method

mod.public_instance_method(symbol) â unbound_method Instance Public methods Similar to instance_method, searches public method only.

public_instance_methods

mod.public_instance_methods(include_super=true) â array Instance Public methods Returns a list of the public instance methods defined in mod. If the optional parameter is not false, the methods of any ancestors are included.