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
233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/plist/parser.rb', line 233 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 |