Skip to content

Instantly share code, notes, and snippets.

@aziz aziz/in_cluomns.rb
Created May 16, 2011

Embed
What would you like to do?
in_cluomns Array monkey patck
class Array
def in_columns(count)
in_groups_of(count).transpose.collect(&:compact)
end
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.