Type:
Class

Core extension library

Rake extensions to Module.

A Module is a collection of methods and constants. The methods in a module may be instance methods or module methods. Instance methods appear as methods in a class when the module is included, module methods do not. Conversely, module methods may be called without creating an encapsulating object, while instance methods may not. (See Module#module_function)

In the descriptions that follow, the parameter sym refers to a symbol, which is either a quoted string or a Symbol (such as :name).

module Mod
  include Math
  CONST = 1
  def meth
    #  ...
  end
end
Mod.class              #=> Module
Mod.constants          #=> [:CONST, :PI, :E]
Mod.instance_methods   #=> [:meth]
remove_class_variable

remove_class_variable(sym) â obj Instance Public methods Removes the definition

2015-04-19 05:07:23
private_constant

mod.private_constant(symbol, ...) => mod Instance Public methods Makes

2015-04-19 04:10:43
class_variables

mod.class_variables(inherit=true) â array Instance Public methods Returns

2015-04-19 02:52:56
>

mod > other â true, false, or nil Instance Public methods Returns true

2015-04-19 02:16:19
include?

mod.include?(module) â true or false Instance Public methods Returns true

2015-04-19 03:22:52
class_variable_set

obj.class_variable_set(symbol, obj) â obj Instance Public methods Sets the

2015-04-19 02:47:15
class_exec

mod.class_exec(arg...) {|var...| block } â obj Instance Public methods Evaluates

2015-04-19 02:38:16
public_instance_methods

mod.public_instance_methods(include_super=true) â array Instance Public methods Returns

2015-04-19 04:53:08
protected_instance_methods

mod.protected_instance_methods(include_super=true) â array Instance Public methods Returns

2015-04-19 04:22:37
instance_methods

mod.instance_methods(include_super=true) â array Instance Public methods Returns

2015-04-19 03:40:36