In this example we are going to take an IP Address in decimal format and convert the IP Address to Binary. The script itself it quite rudimentary but will will improve it in the next…
We have seen previously in my examples that we can process a single argument passed through to a ruby script. In this tutorial we are going to look at checking that we actually do have…
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…
As we move along in learning ruby we will now look at creating scripts rather than just using the interactive ruby shell, irb. I am using ruby on Linux and these demonstrations are using CentOS…
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…
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…
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok