1. Computing
Michael Morin

What is the Difference Between 'alias' and 'alias_method'?

By October 29, 2012

Follow me on:

Ruby has this...  thing called 'alias.'  It'll create a second name for a method (or other things), but it doesn't really fit in with the other Ruby-isms.  It's a keyword and not dynamic at all.  But there's also an 'alias_method' method that does (almost) the same thing.  Why are there two?

No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.