Skip to content

Instantly share code, notes, and snippets.

@L8D

L8D/gist:6236756

Last active Dec 21, 2015
Embed
What would you like to do?
def longest_string array
array.sort_by! &:length
max_length = array.last.length
array.reject { |x| x.length < max_length }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.