From Our Blog: Weird Ruby Tips

http://blog.newrelic.com/2015/04/30/weird-ruby-part-4-code-pods

Do you have any weird, unusual, or neat Ruby tricks? Please share them with us!

Just a minor correction: codepod() is not really an option for calling the closure codepod.

You are correct of course, but the story of how I was tricked might be interesting.

I bet you can spot the issue with my test code below:

irb(main):014:0> p = Proc.new { |string| puts string }
=> #<Proc:0x007fc273a184d8@(irb):14>
irb(main):015:0> p("Hello World!")
"Hello World!"
=> "Hello World!"