title: Overriding method calls in Ruby?
body: <p>I'm trying to get a callback when any method on a particular class is called.
  Overriding "send" doesn't work. It seems send doesn't get called in normal Ruby method invocation. Take the following example.</p>
  
  <pre><code>class Test
    def self.items
     @items ||= []
    end
  end
  </code></pre>
  
  <p>If we override send on Test, and then call Test.items, send doesn't get called.</p>
  
  <p>Is what I'm trying to do possible?</p>
  
  <p>I'd rather not  use set_trace_func, since it'll probably slow down things considerably.</p>