LeetCode Ruby No.58 length-of-last-word
# @param {String} s
# @return {Integer}
def length_of_last_word(s)
s.to_s.split(" ").pop.to_s.length
end
# @param {String} s
# @return {Integer}
def length_of_last_word(s)
s.to_s.split(" ").pop.to_s.length
end