method

original_name

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: UnboundMethod
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.