Forum: Ruby Re: wrapping class method

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E1f43bafda26307a050d11902752b2a6?d=identicon&s=25 Ball, Donald A Jr (Library) (Guest)
on 2007-01-23 21: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.