Check method existence rather than Ruby version
Redact ree.

This formula has not been updated despite having a newer version upstream
so assuming that it isn't installed via Homebrew anymore.

Removing since there are multiple maintained ruby builder scripts out
there for people who still want to install this version.

Closes #20422.
Fix version misdetection from fa582cb9ac65