Ruby Examples

Ruby is an open source programming language designed to make programmers happy. It's also used to create software.

The docs can be found from:

Ruby Examples is a hands-on introduction to Ruby using annotated example programs. Check out the first example or browse the full list below.

Unless stated otherwise, examples here assume the latest major release Ruby and may use new language features. Try to upgrade to the latest version if something isn't working.