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

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

2015-04-19 03:56:13
rake_extension

rake_extension(method) Instance Public methods Check for an existing method

2015-04-19 04:59:49
<=>

module other_module â -1, 0, +1, or nil Instance Public methods ComparisonâReturns

2015-04-19 02:06:26
rake_original_const_missing

rake_original_const_missing(const_name) Instance Public methods Rename the original

2015-04-19 05:01:36
remove_class_variable

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

2015-04-19 05:07:23
yaml_as

yaml_as(url) Instance Public methods Alias for:

2015-04-19 05:12:17
nesting

Module.nesting â array Class Public methods Returns the list of Modules

2015-04-19 01:44:02
const_set

mod.const_set(sym, obj) â obj Instance Public methods Sets the named constant

2015-04-19 03:06:26
module_eval

mod.module_eval {|| block } â obj Instance Public methods Evaluates

2015-04-19 03:51:55
autoload

mod.autoload(module, filename) â nil Instance Public methods Registers filename

2015-04-19 02:25:54