foo ||= [] foo << :element
Feels a little awkward. Is there a more idiomatic way?
(foo ||= []) << :element
But meh. Is it really so burdensome to be readable?
You can always use the push method for any array. I like it.
(a ||= []).push(:element)