Ruby is an open source programming language designed for making developers happy. It's also used to develop software. Please read the official documentation to learn more.
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.