class CFPropertyList::CFDictionary

Public Instance Methods

to_hash() click to toggle source
# File lib/plview.rb, line 7
def to_hash
  hash = {}
  self.value.each do |key, value|
    if value.respond_to?(:to_hash)
      hash[key] = value.to_hash
    else
      hash[key] = value.value
    end
  end
  hash
end