diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-10-08 15:32:25 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-10-08 15:32:25 -0700 |
commit | 190735daf6e8ace3f1e6fc7ccf91938e30e8040b (patch) | |
tree | 7b14d2517e131034c47761425cda60a6ceec8fa0 /lib | |
parent | be5a4cb845025170c0a8b843faa478989e499f51 (diff) | |
download | psych-190735daf6e8ace3f1e6fc7ccf91938e30e8040b.zip |
handing base64 encoded data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/visitors/to_ruby.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb index c757d25..2f6c3b6 100644 --- a/lib/psych/visitors/to_ruby.rb +++ b/lib/psych/visitors/to_ruby.rb @@ -16,6 +16,8 @@ module Psych return o.value if o.quoted case o.tag + when '!binary', 'tag:yaml.org,2002:binary' + o.value.unpack('m').first when '!str', 'tag:yaml.org,2002:str' o.value when "!ruby/object:Complex" |