Class: CFPropertyList::CFDictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/plview.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



7
8
9
10
11
12
13
14
15
16
17
# 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