Class: Plist::PDict

### Home Classes Methods

### In Files

- lib/plist/parser.rb

### Parent

Plist::PTag

### Methods

- #to_ruby

### Class/Module Index

Quicksearch

- Plist
- Plist::Emit
- Plist::Listener
- Plist::PArray
- Plist::PData
- Plist::PDate
- Plist::PDict
- Plist::PFalse
- Plist::PInteger
- Plist::PKey
- Plist::PList
- Plist::PReal
- Plist::PString
- Plist::PTag
- Plist::PTrue
- Plist::StreamParser

No matching classes.

# 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.