From: ts Date: 2003-05-26T23:36:06+09:00 Subject: Re: [1.8] terminated object / invalid inspect_tbl >>>>> "n" == nobu nokada writes: n> You're right. I guess ruby_frame->last_class should not be a n> T_MODULE but T_CLASS or T_ICLASS. Well, it work with hook (I must stop to write stupid thing :-))) svg% cat d.rb #!./ruby module M define_hook(:initialize) do |a| p "M::hook #{a.inspect}" super 32 end end module N include M define_hook(:initialize) do |a| p "N::hook #{a}" super 12 end end class B class << self def allocate:hook p "allocate:hook" super end end include N def initialize(a) @a = a p "B#initialize" end end puts "=======================" p B.new(24) class B class << self undef allocate:hook end undef initialize:hook end puts "=======================" p B.new(24) svg% svg% d.rb ======================= "allocate:hook" "N::hook 24" "M::hook 12" "B#initialize" # ======================= "B#initialize" # svg% Guy Decoux