method
prepend
ruby latest stable - Class:
Module
prepend(*args)public
Invokes Module.prepend_features on each parameter in reverse order.
static VALUE
rb_mod_prepend(int argc, VALUE *argv, VALUE module)
{
int i;
ID id_prepend_features, id_prepended;
CONST_ID(id_prepend_features, "prepend_features");
CONST_ID(id_prepended, "prepended");
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
for (i = 0; i < argc; i++)
Check_Type(argv[i], T_MODULE);
while (argc--) {
rb_funcall(argv[argc], id_prepend_features, 1, module);
rb_funcall(argv[argc], id_prepended, 1, module);
}
return module;
} Related methods
- Instance methods
- <
- <=
- <=>
- ==
- ===
- >
- >=
- alias_method
- ancestors
- attr
- attr_accessor
- attr_reader
- attr_writer
- autoload
- autoload?
- class_eval
- class_exec
- class_variable_defined?
- class_variable_get
- class_variable_set
- class_variables
- const_defined?
- const_get
- const_missing
- const_set
- constants
- define_method
- deprecate_constant
- freeze
- include
- include?
- included_modules
- initialize_clone
- initialize_copy
- inspect
- instance_method
- instance_methods
- method_defined?
- module_eval
- module_exec
- name
- prepend
- private_class_method
- private_constant
- private_instance_methods
- private_method_defined?
- protected_instance_methods
- protected_method_defined?
- public_class_method
- public_constant
- public_instance_method
- public_instance_methods
- public_method_defined?
- remove_class_variable
- remove_method
- singleton_class?
- to_s
- undef_method
- Class methods
- constants
- nesting
- new
- used_modules
- Private methods
-
append_features -
extend_object -
extended -
included -
method_added -
method_removed -
method_undefined -
module_function -
prepend_features -
prepended -
private -
protected -
public -
refine -
remove_const -
using