Values each do v number integer v display number if it is greater than or equal to 200.
Ruby split string into array.
I used scan instead of split to make a small improvement in this rubymonk module lesson second code from the bottom of the page.
If the delimiter passed to string split is a zero length string or regular expression then string split will act a bit differently.
It will remove nothing at all from the original string and split on every character.
String objects in ruby have a method called split it is similar to the split function of perl it can cut up a string into pieces along a pre defined string or regex returning an array of smaller strings.
One of the most basic string manipulation actions is to split a string into multiple sub strings.
This essentially turns the string into an array of equal length containing only one character strings one for each character in the string.
Values line split parse each number in the result array.