From 23ce7d0172aeefdf49073fb344ece5d5033789fb Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 27 Mar 2010 20:41:32 -0700 Subject: testing Object has to_yaml defined --- lib/psych/core_ext.rb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lib') diff --git a/lib/psych/core_ext.rb b/lib/psych/core_ext.rb index 1cf79af..f7c396d 100644 --- a/lib/psych/core_ext.rb +++ b/lib/psych/core_ext.rb @@ -1,13 +1,3 @@ -#require 'date' -#YAML = Psych -# -#[ -# Object, String, Class, Hash, Array, NilClass, Float, FalseClass, TrueClass, -# Range, Complex, Rational, Date, Time, Regexp, Exception, Struct -#].each do |klass| -# klass.send(:remove_method, :to_yaml) rescue NameError -#end - class Object def self.yaml_tag url Psych.add_tag(url, self) @@ -16,5 +6,5 @@ class Object def psych_to_yaml options = {} Psych.dump self, options end - #alias :to_yaml :psych_to_yaml + alias :to_yaml :psych_to_yaml end -- cgit v1.2.3