diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-28 12:16:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-28 12:16:03 -0700 |
commit | d99e78751ec6e3679343b4ac28f2ba9de427d505 (patch) | |
tree | 540a61412e28e3a57e7a0911d1b22c1ec4858c70 /lib | |
parent | b051cf80bcafa6776fe3e3ac4b230c18bea3e95b (diff) | |
download | psych-d99e78751ec6e3679343b4ac28f2ba9de427d505.zip |
making sure psych defines to_yaml on object
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/core_ext.rb | 6 |
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 |