Issue #3246 has been updated by Aaron Patterson.

Status changed from Open to Rejected

Seems useful, but I don't think we can do this.  This code was removed in the patch:

-      Object.class_eval <<-eorb, __FILE__, __LINE__ + 1
-        remove_const 'YAML'
-        YAML = #{engine.capitalize}
-        remove_method :to_yaml
-        alias :to_yaml :#{engine}_to_yaml
-      eorb

But it is necessary for switching the behavior of Object#to_yaml.  Aliasing the method will be global to the process too.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3246

----------------------------------------
http://redmine.ruby-lang.org