> Hey guys, I'm having trouble figuring out how to wrap a class
> method.

Wrapping methods? That good old story? Have a look at [1]... ;]

gegroet,
Erik V. - http://www.erikveen.dds.nl/

 [1] http://www.erikveen.dds.nl/monitorfunctions/index.html

----------------------------------------------------------------

 $ cat init.rb
 require "ev/metameta"   # This is where I store my
meta-meta-programming stuff.

 require "rubygems"
 require "active_record"

 module ActiveRecord
   class Base
     metaclass.pre_condition(:establish_connection) do |obj,
method_name, args, block|
       puts "Establishing connection"
     end
   end
 end

 load "script/server"

----------------------------------------------------------------