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

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

2015-04-19 02:20:42
psych_yaml_as

psych_yaml_as(url) Instance Public methods Also aliased as:

2015-04-19 04:29:56
public_instance_method

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

2015-04-19 04:45:35
const_get

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

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

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

2015-04-19 02:41:05
freeze

mod.freeze â mod Instance Public methods Prevents further modifications

2015-04-19 03:16:37
new

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

2015-04-19 01:47:39
constants

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

2015-04-19 01:43:16