alias methods in ruby

Alias method in rubyRuby classes provides a alias_method that can be used to reuse the existing methods.Consider a situation where you need different methods which has same code and ONLY they have different names.In this case alias_method uses suits best choice instead duplicating same code orwriting common method that will get used in all methods, … Continue reading alias methods in ruby