title: Should I use alias or alias_method?
body: <p>I found a blog post on <code>alias</code> vs. <code>alias_method</code>. As shown in the example given in that blog post, I simply want to alias a method to another within the same class. Which should I use? I always see <code>alias</code> used, but someone told me <code>alias_method</code> is better.</p>
  
  <p><strong>Usage of alias</strong></p>
  
  <pre><code>class User
  
    def full_name
      puts "Johnnie Walker"
    end
  
    alias name full_name
  end
  
  User.new.name #=&gt;Johnnie Walker
  </code></pre>
  
  <p><strong>Usage of alias_method</strong></p>
  
  <pre><code>class User
  
    def full_name
      puts "Johnnie Walker"
    end
  
    alias_method :name, :full_name
  end
  
  User.new.name #=&gt;Johnnie Walker
  </code></pre>
  
  <p><a href="http://blog.bigbinary.com/2012/01/08/alias-vs-alias-method.html" rel="noreferrer">Blog post link here</a></p>