syntax error, unexpected tIDENTIFIER, expecting keyword_end after refactoring IF/ELSE
<p>I refactored this code:</p>

<pre><code>if @data.class == Fixnum
  bin_num = @data.to_s(2)
else
  return results
end
</code></pre>

<p>To this:</p>

<pre><code>@data.class == Fixnum ? bin_num = @data.to_s(2) : return results
</code></pre>

<p>And my program is getting the error in the title. Am I missing something?</p>