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
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/searchlink/plist.rb', line 124 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 |