title: Coffeescript run function or read variable
body: <p>Say I have either</p>
  
  <pre><code>msg = "Saved Successfully"
  </code></pre>
  
  <p>or </p>
  
  <pre><code>msg = -&gt; "Saved #{@course.title} Successfully"
  </code></pre>
  
  <p>Is there anyway to elegantly get the value of msg without knowing whether it's a function or a regular variable rather than doing</p>
  
  <pre><code>success_message = if typeof msg is 'function' then msg() else msg
  </code></pre>