Class: Plist::PData
Instance Attribute Summary
Attributes inherited from PTag
Instance Method Summary collapse
Methods inherited from PTag
inherited, #initialize, mappings
Constructor Details
This class inherits a constructor from Plist::PTag
Instance Method Details
#to_ruby ⇒ Object
244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/plist/parser.rb', line 244 def to_ruby data = Base64.decode64(text.gsub(/\s+/, '')) unless text.nil? begin return Marshal.load(data) rescue Exception io = StringIO.new io.write data io.rewind return io end end |