Re: Object introspection + adding method - SOLVED

2010-10-23 Thread David Favor
Paul Johnson wrote: On Sat, Oct 23, 2010 at 07:52:50PM +0200, Shlomi Fish wrote: On Saturday 23 October 2010 18:50:44 David Favor wrote: Given an instantiated class object, what's the best way to add additional methods after instantiation. Specifically I'm working with qpsmtpd and

Object introspection + adding method

2010-10-23 Thread David Favor
Given an instantiated class object, what's the best way to add additional methods after instantiation. Specifically I'm working with qpsmtpd and desire to add a method is_spooled() to every session, so I can call if ($self->is_spooled) rather then is_spooled($self)... Thanks. -- Love feeling yo