It comes up very often. Should I use alias or alias_method . Let's take a look at them in a bit detail. Usage of alias 1class User 2 3 def full_name 4 puts "Johnnie Walker" 5 end 6 7 alias name full_name 8end 9 10User.new.name #=>Johnnie WalkerCopy
![alias vs alias_method](https://cdn-ak-scissors.b.st-hatena.com/image/square/df7dcf3e382d2d4b018ba79fc6642260e3fa7070/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fdpc4i4bdx%2Fimage%2Fupload%2Fbigbinary_blogs%2Fdefault_blog_image.png)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く