jakehow (owner)

Revisions

gist: 21991 Download_button fork
public
Public Clone URL: git://gist.github.com/21991.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
7
8
9
10
class Array
def flatten
each_with_index do |object, index|
if object.kind_of?(Array)
delete_at(index)
insert(index, *object.flatten)
end
end
end
end