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.


About

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

Categories