method

original_name

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Method
original_name() public

Returns the original name of the method.

class C
  def foo; end
  alias bar foo
end
C.instance_method(:bar).original_name # => :foo
Show source
Register or log in to add new notes.