Method: Module#extended

Defined in:
object.c

#extended(_y) ⇒ Object (private)

call-seq:

extended(othermod)

The equivalent of included, but for extended modules.

module A
  def self.extended(mod)
    puts "#{self} extended in #{mod}"
  end
end
module Enumerable
  extend A
end
 # => prints "A extended in Enumerable"

1168
1169
1170
1171
1172
# File 'object.c', line 1168

static VALUE
rb_obj_dummy1(VALUE _x, VALUE _y)
{
    return rb_obj_dummy();
}