class Plist::PData

Public Instance Methods

to_ruby() click to toggle source
# 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