class Plist::PDict

Public Instance Methods

to_ruby() click to toggle source
# File lib/plist/parser.rb, line 163
def to_ruby
  dict = {}
  key = nil

  children.each do |c|
    if key.nil?
      key = c.to_ruby
    else
      dict[key] = c.to_ruby
      key = nil
    end
  end

  dict
end