My lettering - 11/20


#1

When we use .upto to go through the letters, how does it specifically know to sort through the alphabet? Is it just plain knowledge?


#2

There are two upto methods, one for integers and one for strings.

Here is the documentation on the one for strings (you also have the source code if you click on it):

http://ruby-doc.org/core-2.2.3/String.html#method-i-upto


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.