class CFPropertyList::CFDictionary
this class contains a hash of values
def initialize(value={})
def initialize(value={}) @value = value end
def to_binary(bplist)
def to_binary(bplist) bplist.dict_to_binary(self) end
def to_plain(plist)
def to_plain(plist) str = "{ " cfstr = CFString.new() @value.each do |k,v| cfstr.value = k str << cfstr.to_plain(plist) + " = " + v.to_plain(plist) + "; " end str << "}" end
def to_xml(parser)
def to_xml(parser) n = parser.new_node('dict') @value.each_pair do |key, value| k = parser.append_node(parser.new_node('key'), parser.new_text(key.to_s)) n = parser.append_node(n, k) n = parser.append_node(n, value.to_xml(parser)) end n end