Ruby Question

Methods like __<original_name>__ in Ruby

Are there others methods like

that works as an alias and follow the same pattern

Answer Source

It's pretty easy to find a list of method names matching your pattern:

# => [:__send__, :__id__, :__method__, :__callee__, :__dir__]

Of these, Kernel#__method__, Kernel#__callee__, and Kernel#__dir__ aren't aliases, which leaves us with two: