Parent

Methods

Plist::PDict

Public Instance Methods

to_ruby() click to toggle source
# File lib/plist/parser.rb, line 142
def to_ruby
  dict = Hash.new
  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

[Validate]

Generated with the Darkfish Rdoc Generator 2.