__callee__ -> Symbol | nilRuby 1.9.3 から[permalink][rdoc][edit]-
現在のメソッド名を返します。メソッドの外で呼ばれると nil を返します。
例def foo p __callee__ end alias :bar :foo p foo # => :foo p bar # => :bar p __callee__ # => nilKernel?.__method__ とは異なり、現在のメソッド名が alias されたメソッドの場合には alias 先のメソッド名を返します。
[SEE_ALSO] Kernel?.__method__