Ruby in Twenty Minutes (2006)

Ruby in Twenty Minutes (2006)

Ruby comes with a program that will show the results of any Ruby statements you feed it. The second line is just IRB’s way of telling us the result of the last expression it evaluated. That’s because most of the time the square root of a number won’t be an integer, so the method always returns a floating-point number.

Source: www.ruby-lang.org