SameShirtEveryDay.com

Personal blog of the one called Alex Gorbatchev, from Toronto, Canada.

RIO – wrong number of arguments on rmtree, mkpath etc

Posted on December 12th, 2007 by Alex Gorbatchev. In Ruby. 3 comments!

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.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 comments.

  1. ok – I think I follow your blog pretty well but must have been asleep for your Silverlight posts….

  2. Alex Gorbatchev

    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.

  3. aw com’on – you’ll be able to write code for Silverlight in *ruby* using the DLR :D

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> , rel="nofollow" in use - no link dropping, no keywords or domains as names; do not spam, and do not advertise!

home
Subscribe to this blog Follow me on Twitter My bookmarks on Delicious My photography on Flickr