On Mon, 2004-09-20 at 11:14, Ara.T.Howard / noaa.gov wrote:
>    class BlockIteratorProxy
> 
>      %w(
>        count
>        begin
>        end
>        proxy
>      ).each{|a| attr a, true}
> 
>      def intialize proxy
>        @proxy = nil
>      end
> 
>      def method_missing(*a,&b);proxy.send(*a,&b);end
>    end

OK, I'm stumped.  Why write it that way instead of:

    attr_accessor :count,:begin,:end,:proxy

which, AFAIK, does exactly the same thing.  And why pass in proxy
(without parens?) and not use it?  Or are we in some idiom space that
I'm totally unfamiliar with?


-- MarkusQ