DeveloperHell | Languages: All | PHP | Python | .NET | Java | CSS | Ruby   Site: Statistics
want to join us? register, it's easy | help
category icon

Ruby blocks gotchas

in Ruby added by admin, on 31/12/2007 blocks intermediate metaprogramming

There's this thing they say about Ruby - everything is an object. It's true, with very few exceptions, one of them being the block. Well guess what, this little gem of an inconsistency came back to bite me when I was trying to do something involving dynamic redefinition of methods.

comment save report
 
to add comments, create a free account, or sign in
no comments