#Alright so this is a method to extract the longest word from a string.
def longest_word(string)
longest = [] #I figure I could store the longest word here?
string.each do |word| #Should I be using each? Or a different method?
word <=> word # I don't know how to compare the words to each other.
longest << word
end
end
I0FscmlnaHQgc28gdGhpcyBpcyBhIG1ldGhvZCB0byBleHRyYWN0IHRoZSBsb25nZXN0IHdvcmQgZnJvbSBhIHN0cmluZy4KCmRlZiBsb25nZXN0X3dvcmQoc3RyaW5nKQogICAgbG9uZ2VzdCA9IFtdICNJIGZpZ3VyZSBJIGNvdWxkIHN0b3JlIHRoZSBsb25nZXN0IHdvcmQgaGVyZT8gCiAgICBzdHJpbmcuZWFjaCBkbyB8d29yZHwgI1Nob3VsZCBJIGJlIHVzaW5nIGVhY2g/IE9yIGEgZGlmZmVyZW50IG1ldGhvZD8KICAgICAgICB3b3JkIDw9PiB3b3JkICMgSSBkb24ndCBrbm93IGhvdyB0byBjb21wYXJlIHRoZSB3b3JkcyB0byBlYWNoIG90aGVyLgogICAgICAgIGxvbmdlc3QgPDwgd29yZCAKICAgIGVuZAplbmQ=