Forum: Ruby Re: wrapping class method

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ball, Donald A Jr (Library) (Guest)
on 2007-01-23 22:36
(Received via mailing list)
>     def self.establish_connection(arg)
>       logger.debug("Establishing connection")
>       self.old_establish_connection(arg)
>     end
>   end
> end

Yes, that's exactly it. And it even clarifies the class << self idiom
that I've been curious about to some extent. Thanks!

Erik's metameta library looks more elegant, but also more complicated
than I'm able to understand yet. I'm trying to restrict myself to using
constructs I understand completely.

- donald
This topic is locked and can not be replied to.