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]
yaml_as

yaml_as(url) Instance Public methods Alias for:

2015-04-19 05:12:17
class_variables

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

2015-04-19 02:52:56
class_variable_set

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

2015-04-19 02:47:15
>

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

2015-04-19 02:16:19
private_constant

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

2015-04-19 04:10:43
class_exec

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

2015-04-19 02:38:16
protected_instance_methods

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

2015-04-19 04:22:37
include?

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

2015-04-19 03:22:52
instance_methods

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

2015-04-19 03:40:36
ancestors

mod.ancestors â array Instance Public methods Returns a list of modules included

2015-04-19 02:23:33