summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-27 20:41:32 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-27 20:41:32 -0700
commit23ce7d0172aeefdf49073fb344ece5d5033789fb (patch)
tree42fe963c33b5f8d969da5ef29e83d247b0608aea /lib
parent5f1a7543e7bcde61323cd02fb3a82ceda733d051 (diff)
downloadpsych-23ce7d0172aeefdf49073fb344ece5d5033789fb.zip
testing Object has to_yaml defined
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/core_ext.rb12
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