From: Trans Date: 2008-11-15T01:09:33+09:00 Subject: Class.new and class keyword not the same? Here the normal scenario: class X def self.inherited(s) p "here" end end class Z < X p "race" end result: "here" "race" But in a test case of mine I need the class to be a variable, but: z = Class.new(X) do p "race" end result: "race" "here" Why is "race" coming before "here"? ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] T.