title: Method pointers in ruby
body: <p>I want to store several different methods in an array in Ruby. Suppose I want to store the <code>type</code> method twice:</p>
  
  <pre><code>[type, type]
  </code></pre>
  
  <p>doesn't store two entries of <code>type</code> in an array; it executes <code>type</code> twice, and stores the <em>results</em> in the array. how do I refer explicitly to the method object itself?</p>
  
  <p>(this is just a simplified version of what I really want.)</p>
  
  <p>EDIT: on second thoughts, it bothers me that the solution proposed below avoids the problem by passing the name of the method. how do you pass the method object itself? for example, what if you pass [:type, :type] to a method that has an alternative resolution for type? how can you pass the type method object itself?</p>