On Saturday 28 May 2005 11:05 pm, Francis Hwang wrote:
> I wanted to trigger some methods to undefine instance methods of
> 'fname' in User, but I can't do that with Class.inherited -- because at
> the time that the User class is being defined, I don't know that I'm
> looking for global methods named 'fname' and 'lname'.
>
> It feels like, from perusing the archives, there is currently no way to
> be notified when a class definition is finished. Correct?

I don't know of any ... however, would this help?

  class User < Lafcadio::DomainObject
    fields do
      text 'fname'
      text 'lname'
    end
  end

You can have fields perform actions at the end of the block.  I don't know if 
this is good enough, or if you really need it at the end of the class def.

-- 
-- Jim Weirich    jim / weirichhouse.org     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)