RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Executing a Ruby block in a different context - solution & optimization

I just wrote small blog post regarding a problem I recently faced. My challenge was to execute with a delay a block stored in an ivar but the tricky part is that the block needs to be executed in a different context. I was after a clean solution that would perform well. This is a summary of what I found out and my final solution.

Comments

Use text in links, dude! :-) (Fixed..)

It’s Labor Day in the United States of America, writing raw HTML was requiring too much work :p (thanks for fixing the post tho)

Bâtard paresseux! ;-)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in