Skip to main content
Category

Scripting

Ruby

Ruby – if and unless

You may well be used to the conditional if statement in almost all programming, if not all. In ruby if does exist and we will use it. We also have a new conditional operator to…
The Urban Penguin
October 11, 2013
Ruby

Ruby — All about case

In ruby we can manipulate the case of strings with methods: capitalize upcase downcase Working with irb the interactive ruby environment we can test this easily. First we will create a local variable. Local variable…
The Urban Penguin
October 10, 2013
Ruby

Ruby “Hello World”

You must know by now that when we program we start with Hello World! So this will be no different. Working with Ubuntu we will first install Ruby and then so by example how we…
The Urban Penguin
October 9, 2013