Ruby magic

These are links to excellent articles from eigenclass.org on some magic that can be performed with Ruby:

This shows how to turn the GNU debugger gdb into a Ruby interpreter, making it useful for debugging Ruby code.

This shows how to use the Ruby/DL extension to manipulate the internals of Ruby objects. Needless to say, proceed with caution!

As the title says, a walk-through of the implementation of a single-term, extensible, and fast search engine in just a few lines of code.

These are great reads for those who want to get to know the naked Ruby better.

Comment

Commenting is closed for this article.