title: How do I remove leading whitespace chars from Ruby HEREDOC?
body: <p>I'm having a problem with a Ruby heredoc i'm trying to make. It's returning the leading whitespace from each line even though i'm including the - operator, which is supposed to suppress all leading whitespace characters. my method looks like this:</p>
  
  <pre><code>    def distinct_count
      &lt;&lt;-EOF
          \tSELECT
          \t CAST('#{name}' AS VARCHAR(30)) as COLUMN_NAME
          \t,COUNT(DISTINCT #{name}) AS DISTINCT_COUNT
          \tFROM #{table.call}
      EOF
  end
  </code></pre>
  
  <p>and my output looks like this:</p>
  
  <pre><code>    =&gt; "            \tSELECT\n            \t CAST('SRC_ACCT_NUM' AS VARCHAR(30)) as
  COLUMN_NAME\n            \t,COUNT(DISTINCT SRC_ACCT_NUM) AS DISTINCT_COUNT\n
          \tFROM UD461.MGMT_REPORT_HNB\n"
  </code></pre>
  
  <p>this, of course, is right in this specific instance, except for all the spaces between the first " and \t.  does anyone know what i'm doing wrong here?</p>