Explain Ruby

Paste Ruby code or a URL to get Ruby syntax explained.

Explain Ruby will not be able to explain what the code in question does, i.e. the original author's intent, but it will help newcomers to Ruby to learn how to read code by teaching them programming constructs of the Ruby programming language.

This is still in experimental phase. Some syntaxes are not yet documented, and there might be formatting bugs in the output.

Special thanks to Ryan Tomayko for Rocco which is used for final formatting of results on this site.

Made by @mislav in memory of Why The Lucky Stiff.

URL can point to a Gist, Pastie, file on GitHub, a HTML page with code on it, or directly to a Ruby script. Have a bookmarklet