News for hackers. Stuff that matters.
Re:Passing Blocks in Ruby Without &block by 3pt14159 on Saturday February 05, 2011 @05:34PM (#2184274)
These are really cool and understanding how magic is implemented is great, but when you are searching for the "tell_ape" method for 10 mins only to realize that method_missing is doing the magic, it really is a bit of a piss off. If you are going to do these tricks please for the nonwizard ruby coders out there make it blatantly obvious in your README or comments or tests.
Re:Passing Blocks in Ruby Without &block by mudgemeister on Sunday February 06, 2011 @05:37AM (#2185364)
This is a fair criticism: I've now updated the examples so they don't involve method_missing so as to not needlessly complicate the issue.
Re:Passing Blocks in Ruby Without &block by 3pt14159 on Sunday February 06, 2011 @03:31PM (#2186365)
Oh! I didn't mean to insult you or the blog post, I liked it very much, I meant in production code or open source projects. Your blog post was very straightforward and interesting.