returning the length of each word : each « String « Ruby






returning the length of each word



"In the early".split.each {
    |p| print p.length, " " 
} 

 

Related examples in the same category

1.Call each on a string with escape sequence