Comprehensive Ruby Programming
上QQ阅读APP看书,第一时间看更新

Split, strip, and join guides for strings

In this section, we are going to walk through how to use the split, strip, join methods in Ruby. These methods will help us clean up strings and convert a string to an array so we can access each word as its own value.