Ruby - Enumerable and Collection Processing
Identify the error in this code snippet:
items = ["apple", "pear", "banana"] sorted = items.sort_by do |item| item.length end puts sorted
