Class Plist::PData
In: lib/facter/util/plist/parser.rb
Parent: PTag

Methods

to_ruby  

Public Instance methods

[Source]

     # File lib/facter/util/plist/parser.rb, line 212
212:     def to_ruby
213:       data = Base64.decode64(text.gsub(/\s+/, ''))
214: 
215:       begin
216:         return Marshal.load(data)
217:       rescue Exception => e
218:         io = StringIO.new
219:         io.write data
220:         io.rewind
221:         return io
222:       end
223:     end

[Validate]