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

mod.class_eval(string [, filename [, lineno]]) â obj Instance Public methods Evaluates

2015-04-19 02:34:54
private_instance_methods

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

2015-04-19 04:12:11
autoload?

mod.autoload?(name) â String or nil Instance Public methods Returns filename

2015-04-19 02:33:25
new

Module.new â modModule.new {|mod| block } â mod Class Public methods

2015-04-19 01:47:39
constants 2

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

2015-04-19 03:13:46
private_class_method

mod.private_class_method(symbol, ...) â mod Instance Public methods Makes

2015-04-19 04:03:07
to_s

mod.to_s â string Instance Public methods Return a string representing this

2015-04-19 05:09:57
class_variable_get

mod.class_variable_get(symbol) â obj Instance Public methods Returns the

2015-04-19 02:42:55
protected_method_defined?

mod.protected_method_defined?(symbol) â true or false Instance Public methods Returns

2015-04-19 04:27:26
constants

Module.constants â arrayModule.constants(inherited) â array Class Public methods In

2015-04-19 01:43:16