When you define a top-level method like this it adds it to _every object in the system_.  If that's your intention, it's fine to do that, but generally I think that's a bad idea and there's no reason for this method to be get added everywhere.

Instead, can you put it into a module that gets included, like we did in rspec-core?