Comment est-ce que je ferais quelque chose comme ci-dessous?Multidimensional each
[
'foo'
['bar', 'baz'],
[
'one',
['two', 'three']
]
].each { |word| puts word }
# I want this to return:
foo
bar
baz
one
two
three
Faut-il une virgule après ' 'foo''? –