this might better be:
<pre>
if spec
  spec = spec.split...
else
  spec = []
end
</pre>

(or even `spec = if spec then` to avoid repeating the assign-to part ;)