I frequently write something like this:
a_hash[\'x\'] ? a_hash[\'x\'] += \' some more text\' : a_hash[\'x\'] = \'first text\'
There ought to be
You can specify the initial value when you create your hash:
a_hash = { 'x' => 'first text' } // ... a_hash['x'] << ' some more text'