Skip to content

Instantly share code, notes, and snippets.

@borowskiio
borowskiio / marray.rb
Last active February 17, 2016 08:26
Produce PHP-style multidimensional array, e.g arr[1][2][3] = 'foobar'
# Produce PHP-style multidimensional array.
#
# Example
#
# arr = Marray.new
#
# arr[1][2][3] = "foo"
# => "foo"
#
# arr[1][2][3]