Tag Archives: Integers

Integers and Iterators

There are a variety iterators that are useful with Ruby such as we’ve already seen in previous samples of code, such as n.times. Others are n.upto and n.downto for going up or down a series of integers and the step, which is more like the traditional loop statement. Their usage would be somewhat like:
3.times {print”X [...]

Posted in Development, Programming Basics | Also tagged | Comments closed

Ruby Data Types

We have looked into many of the data structures that are supported by ruby along with brief examples of their use and structures. Now we turn to the different data types the language supports which is vital in maximizing the potential of Ruby. Numbers are classified into integers and floating point numbers. The handling capabilities [...]

Posted in Development, Programming Basics | Also tagged , | Comments closed