summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-28 12:16:03 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-28 12:16:03 -0700
commitd99e78751ec6e3679343b4ac28f2ba9de427d505 (patch)
tree540a61412e28e3a57e7a0911d1b22c1ec4858c70 /lib
parentb051cf80bcafa6776fe3e3ac4b230c18bea3e95b (diff)
downloadpsych-d99e78751ec6e3679343b4ac28f2ba9de427d505.zip
making sure psych defines to_yaml on object
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/core_ext.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/psych/core_ext.rb b/lib/psych/core_ext.rb
index 7425d50..bd22219 100644
--- a/lib/psych/core_ext.rb
+++ b/lib/psych/core_ext.rb
@@ -3,6 +3,12 @@ class Object
Psych.add_tag(url, self)
end
+ # FIXME: rename this to "to_yaml" when syck is removed
+
+ ###
+ # call-seq: to_yaml
+ #
+ # Convert an object to YAML
def psych_to_yaml options = {}
Psych.dump self, options
end