This one will only excute the right hand side if the left hand side is not null or undefined:
a ||= <some statement>
obj.instance_eval('ruby code')