method

original_name

Importance_1
v2_5_5 - Show latest stable - 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.