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 invocations, almost as if they were parameters.

03.02.09 | in Category: Ruby on Rails

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 parenthesis.

03.02.09 | in Category: Ruby on Rails

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 change the original string).

03.02.09 | in Category: Ruby on Rails

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.

03.02.09 | in Category: Ruby on Rails

About

Christopher is a Software Engineer, Cisco Certified Network Associate and freelance Web Designer / Programmer based in the Philippines.

Categories