End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Module#method_added
method_added(p1)
object.c
View on GitHub ↗
static VALUE
rb_obj_dummy1(VALUE _x, VALUE _y)
{
return rb_obj_dummy();
}
Alias of #included
Callback invoked whenever the receiver is included in another module or class. This should be used in preference to Module.append_features if your code wants to perform some action when a module is included in another.
Example
module A def A.included(mod) puts "#{self} included in #{mod}" end end module Enumerable include A end # => prints "A included in Enumerable"
See also
#included
#instance_methods
#method_defined?
#instance_method
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1