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

mod.public_instance_method(symbol) â unbound_method Instance Public methods Similar

2015-04-19 04:45:35
psych_yaml_as

psych_yaml_as(url) Instance Public methods Also aliased as:

2015-04-19 04:29:56
>=

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

2015-04-19 02:20:42
class_variable_defined?

obj.class_variable_defined?(symbol) â true or false Instance Public methods Returns

2015-04-19 02:41:05
const_get

mod.const_get(sym, inherit=true) â objmod.const_get(str, inherit=true) â obj Instance Public methods

2015-04-19 02:57:04
private_method_defined?

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

2015-04-19 04:17:55
included_modules

mod.included_modules â array Instance Public methods Returns the list of modules

2015-04-19 03:26:39
freeze

mod.freeze â mod Instance Public methods Prevents further modifications

2015-04-19 03:16:37
<

mod Instance Public methods Returns true

2015-04-19 01:54:49
public_constant

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

2015-04-19 04:43:10