diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-27 20:41:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-27 20:41:32 -0700 |
commit | 23ce7d0172aeefdf49073fb344ece5d5033789fb (patch) | |
tree | 42fe963c33b5f8d969da5ef29e83d247b0608aea /lib | |
parent | 5f1a7543e7bcde61323cd02fb3a82ceda733d051 (diff) | |
download | psych-23ce7d0172aeefdf49073fb344ece5d5033789fb.zip |
testing Object has to_yaml defined
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/core_ext.rb | 12 |
1 files changed, 1 insertions, 11 deletions
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 |