This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |