Re: [Httpmail-devel] Ruby error:
Status: Beta
Brought to you by:
fuzz
From: Dane G. A. <da...@av...> - 2002-11-13 22:53:36
|
This was _super_ helpful: > The book is available online at http://www.rubycentral.com/book/ (the > dns for the domain is messed up, so try http://165.193.123.250/book/ > if that doesn't work). I spent a bunch of time looking for the book yesterday, but all the links were broken. I thought the site was gone :) > You said you installed nqxml to get uri.rb? uri.rb got included with > the Ruby standard library at some point, so you shouldn't need nqxml. > Maybe that's causing a conflict, I don't know. Hmm . . . could be. I'll check this out . . . > Ruby is a dynamic language, so the following line: > > res = http_con.method(req_method.downcase).call(path_query, req_data, > headers) > > (where req_method is 'PROPFIND') tells the Ruby compiler to call the > method propfind(path_query, req_data, headers). It's sorta like > reflection in Java, RTTI in C++, etc. Yeah, it's funny how looking at things after taking a break sometimes makes all the difference. I got your message after driving home from work, and I can see now how instead of calling propfind(arg1, arg2, arg3) this particular piece of code is using: method(<method_name>).call(<arg1>, <arg2>, <arg3>) After I read your reply, I looked at the code and it immediately made sense. Thx for all the tips. Time for more digging :) Cheers, -Dane |