rake_extension

rake_extension(method) Instance Public methods Check for an existing method in the current class before extending. IF the method already exists, then a warning is printed and the extension is not added. Otherwise the block is yielded and any definitions in the block will take effect. Usage: class String rake_extension("xyz") do def xyz ... end end end

public_method_defined?

mod.public_method_defined?(symbol) â true or false Instance Public methods Returns true if the named public 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.public_method_defined? "method1" #=> true C.public_method_defined? "method2" #=> false C.met

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.

public_instance_method

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

public_constant

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

public_class_method

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

psych_yaml_as

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

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" #=

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.

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