In this lesson, we are going to look at randomly selecting items in a list using Ruby. Like always we do try to keep examples as meaningful as possible whilst not becoming too complex. So…
Having practical examples on using any programming language is always useful. I am very much from a system administration background, meaning that my examples will also be geared towards sysadmin tasks. It is no different…
When we work with RUBY then any arithmetic calculation with two integers will only produce an integer ( whole number ). If we want more accuracy then we must use at least one float in…
So now we will start putting Ruby to work so we see some benefits to our learning efforts. In this tutorial we will look at how we can use Ruby to create users on our…
It is often the case that we need to loop through tasks a certain amount of times. In other languages you may use a for loop for this but in ruby we can use the…
If we have become used to Ruby programming then we will know that we can use gets to obtain user input. One side effect to this that the input is also echoed or printed on…