Skip to content

Instantly share code, notes, and snippets.

# A simple Ruby class providing an alternative implementation
# of the *Array#flatten method*
#
# Author:: Svetoslav Blyahov
class Flattener
# The initializer method needed for the alternative flatten prcedure
#
# @param [Array] arr
def initialize(arr)