# File lib/safe_yaml/transform.rb, line 30 def self.to_proper_type(value, quoted=false, tag=nil, options=nil) case tag when "tag:yaml.org,2002:binary", "x-private:binary", "!binary" decoded = Base64.decode64(value) decoded = decoded.force_encoding(value.encoding) if decoded.respond_to?(:force_encoding) decoded else self.to_guessed_type(value, quoted, options) end end