From: Joel VanderWerf Date: 2006-04-26T14:48:22+09:00 Subject: Re: Rake task dependeny vs. method call Trans wrote: > Just for fun I put together this simple demonstration. This _is_ kind of fun. Your demo suggests that maybe rake and dependency injection can be unified somehow.... For example, using my favorite DI toy: ---- require 'mindi' class Tasks extend MinDI::Container a { puts "a"; :done } b { a; puts "b"; :done } c { a; puts "c"; :done } d { b; c; puts "d"; :done } end Tasks.new.d ---- Output: a b c d (The ":done" could be removed if MinDI didn't confuse a nil return value with the state of not yet having been called.) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407