From: Trans Date: 2006-08-18T02:45:14+09:00 Subject: Re: using a module at the toplevel doesn't work Hi Capitain, > What are you trying to do? Well, I have module called Taskable. It's an emulation of Rake's basic task pattern. eg. desc "foo description" task :foo => [ :foo_prerequisite ] do ... end But rather than define tasks globally as with Rake's system. I designed it to work within modules/classes namspace including the tasks being actual methods. So the one can do: class X task :a => [:b] do print "a" end task :b do print "b" end end X.new.a; puts => ba Unfortuately when I use this to make a Rake command-line emulator I want to use the module at the toplevel and can't. Thanks, T.