Sha256: 755b948c3e0ae89ae6e0057c5c3b5f2dd84749daeccbdad70dcbfdf54932493c
Contents?: true
Size: 240 Bytes
Versions: 1
Compression:
Stored size: 240 Bytes
Contents
module Termtable module CoreExt module Array def depth __depth__(self) end def __depth__(array) return 0 if array == array.flatten 1 + __depth__(array.flatten(1)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
termtable-0.1.0 | lib/termtable/core_ext/array.rb |