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

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

2015-04-19 04:59:49
name

mod.name â string Instance Public methods Returns the name of the module

2015-04-19 03:57:43
module_eval

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

2015-04-19 03:51:55
<=>

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

2015-04-19 02:06:26
nesting

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

2015-04-19 01:44:02
yaml_as

yaml_as(url) Instance Public methods Alias for:

2015-04-19 05:12:17
const_set

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

2015-04-19 03:06:26
autoload

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

2015-04-19 02:25:54
rake_original_const_missing

rake_original_const_missing(const_name) Instance Public methods Rename the original

2015-04-19 05:01:36
const_defined?

mod.const_defined?(sym, inherit=true) â true or false Instance Public methods Says

2015-04-19 02:54:13