"Yukihiro Matsumoto" wrote
....
> |class << Module
> |  public
> |    def abcdefg
> |    end
> |end
> |
> |#ruby test.rb
> |test.rb:2: method `public' called on terminated object
> |(0x35cc8) (NotImplementedError)
>
> This must be a bug.  I will fix.

It is probably related to the recent meta-class changes
with ruby 1.7.3 (2002-09-27) [i386-mswin32]
---
class << Object
  begin
   id
  rescue NotImplementedError => $mes
  end
  class << self
    def bla
    end
  end
  p $mes
  p id
end
---
method `id' called on terminated object (0x279a950)
20763816
---

/Christoph