Category: Ruby on Rails

Post Pic

Learn Ruby on Rails: the Ultimate Beginner’s Tutorial

While it certainly makes no attempt to constitute a complete guide to the Ruby language, this tutorial will introduce you to some of the basics of Ruby.

Post Pic

More On Strings

There are many methods in the String class (you don’t have to memorize them all; you can look up the documentation) like the reverse that gives a backwards version of a string (reverse does not chan

Post Pic

Simple Constructs

Let’s explore some very simple constructs available in Ruby. The example below p014constructs.rb illustrates the if else end construct. By the Ruby convention, if and while do not require parenthesi

Post Pic

Ruby Blocks

Ruby Code blocks (called closures in other languages) are definitely one of the coolest features of Ruby and are chunks of code between braces or between do- end that you can associate with method in

RSS Feeds