From: Avi Bryant Date: 2001-03-06T01:57:43+09:00 Subject: [ruby-talk:12044] Re: ANN: Memoize 0.1.2 Most interesting is: On Tue, 6 Mar 2001, ts wrote: > require 'advice' > > class Foo > def bar > puts "hello world" > puts block_given? ^^^^^^^^^^^^^^^^^ > end > > def Foo.advice(*args) > puts "pre" > yield > end > > advise_method :bar > end Foo.new.bar ^D pre hello world true ^^^^ So somehow I'm messing up the block_given? call; I'm not sure how. Ideas, anyone?