A
Adam Block
Hi all.
Let's say I want to either create a new named array or append to that
array if it already exists. Is there a more elegant way of doing the
following?
Thanks!
/afb
Let's say I want to either create a new named array or append to that
array if it already exists. Is there a more elegant way of doing the
following?
@foo[:bar].nil? ? foo[:bar] = ["snafu"] : foo[:bar] << "snafu"
Thanks!
/afb