`de-alias` is more proper English.  Documentation would be helpful.  The code doesn't say much on inspections.  Additionally, this is a recursive call to itself; which means you can blow the stack.  Ruby doesn't have tail-call optimization.   The name of the formal parameter, 'object' is ambiguous.  Everything in Ruby is an object.  But it appears that your object has an 'each' method.  What kind of object is it?

Finally, the `tap` here seems pointless.