From: Aaron Patterson Date: 2010-07-08T03:01:34+09:00 Subject: [ruby-core:31109] [Feature #3246][Rejected] thread-local yamler 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