Hi,

At Mon, 16 Dec 2002 02:07:40 +0900,
Matt Armstrong wrote:
> I added and clarified some things in doc/NEWS and thought it would be
> generally useful.

Great jobs.

> +: Class#inherited
> +
> +  Method is called when Class is inherited by another class.
> +
> +	class A; end
> +	def A.inherited(by)
> +          puts "A inherited by #{by.inspect}"
> +        end
> +        class B < A; end
> +
> +        Prints out "A inherited by B"

This feature has existed but the timing was changed.

  class B < A
    def B.inspect; "<<<B>>>"; end
  end
  => "A inherited by B"		# 1.6 or older
  => "A inherited by <<<B>>>"	# 1.7

That is "inherited" will be called after subclass is defined.
How should we describe this?

-- 
Nobu Nakada