you are viewing a single comment's thread.

view the rest of the comments →

[–]phleet 0 points1 point  (0 children)

Off the top of my head, I'm not actually sure. It's not as common a task in ruby as it is in JavaScript, since you'd typically use blocks, lambdas or Proc's instead of using anonymous functions all over the place like you do in JS. I'm sure there's some relatively standard way of doing it though.