Difference between revisions of "Looping with for and the Ruby Looping Methods"

From Techotopia
Jump to: navigation, search
(New page: In the previous chapter we looked at Ruby While and Until Loops as a way to repeat a task until a particular expression evaluated to ''true'' or ''false''. In this chapter we will look...)
 
(No difference)

Revision as of 16:22, 26 November 2007

In the previous chapter we looked at Ruby While and Until Loops as a way to repeat a task until a particular expression evaluated to true or false. In this chapter we will look at some other mechanisms for looping in a Ruby program, specifically for loops and a number of built-in methods designed for looping, specifically the loop, upto, downto and times.