Ruby Question

Methods like __<original_name>__ in Ruby

Are there others methods like

__send__
that works as an alias and follow the same pattern
__<original_name>__
?

Answer

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

ObjectSpace.each_object(Module).flat_map(&:instance_methods).uniq.grep(/__\w+__/)
# => [:__send__, :__id__, :__method__, :__callee__, :__dir__]

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