title: Using constants to create an array without re-specifying the owning class repeatedly
body: <pre><code>class CAR 
     FORD = 1
     GM = 2
     BMW = 3
  end
  </code></pre>
  
  <p>I want to create an array like:</p>
  
  <pre><code>all_cars = [CAR::FORD, CAR::GM, CAR::BMW]
  =&gt;[1, 2, 3]
  </code></pre>
  
  <p>Is there a way I can initialize this array with typing CAR:: for each element, something like</p>
  
  <pre><code>all_cars = %(FORD GM BMW).map {|ele| "CAR::" + ele}
  =&gt;["CAR::FORD", "CAR::GM", "CAR::BMW"]
  </code></pre>
  
  <p>Not want I wanted</p>