2011-02-01 __method__ ruby 実行しているメソッド名を返すメソッド。aliasしたメソッドの場合は元メソッドの名前を返す。 def foo __method__ end alias bar foo foo # => :foo bar # => :foo