Class: Plist::PDict
Instance Attribute Summary
Attributes inherited from PTag
Instance Method Summary collapse
Methods inherited from PTag
inherited, #initialize, mappings
Constructor Details
This class inherits a constructor from Plist::PTag
Instance Method Details
#to_ruby ⇒ Object
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/plist/parser.rb', line 165 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 |