RIO – wrong number of arguments on rmtree, mkpath etc
It’s nice to do some Ruby once in a while. Lately I’ve been involved in a Silverlight project and haven’t touched Ruby in 2 months (hence the lack of activity on my Ruby blog). However, I’m making a build script in Ruby.
I have run into a weird exception when using my favorite IO gem RIO (btw, Noobkit page got beaten with the ugly stick and parser needs a spanking).
Exception occur when calling rio(...).rmtree or rio(...).mkpath or rio(...).mkdir. It reads as follows: “wrong number of arguments (0 for 1)”. I know for a fact that these methods don’t take any arguments, but just for kicks, passing a single random argument results in an ironic “wrong number of arguments (1 for 0)”.
Basically the problem came down to the fact that RIO doesn’t like Rake. I can live without Rake, but not without RIO.
3 comments.
ok – I think I follow your blog pretty well but must have been asleep for your Silverlight posts….
I keep this as a ruby blog, which I think what all 150 ppl are subscribed for. Wouldn’t be very nice to start blogging about something people have no interest about – that’s called feed spam
I just made it up.
aw com’on – you’ll be able to write code for Silverlight in *ruby* using the DLR
Leave a Reply