What is the purpose of chaining methods? Is there a benefit? Chaining only seems to return the last method.
name = "John" name.downcase.reverse.upcase
When we chain the name the result would be "EOD NHOJ". It appears that the last method overrides the first method, but by chaining it would apply all methods.
In typing this I somewhat answered my own question, but I'm wondering if there's any benefits in chaining downcase.upcase since it would return all uppercase and NOT lowercase.