Flay analyzes code for structural similarities. Differences in literal values, variable, class, method names, whitespace, programming style, braces vs do/end, etc are all ignored.
Why do you think that https://github.com/seattlerb/flog is a good alternative to Flay