Class/Module Index [+]

Quicksearch

Facter::Util::CFPropertyList::CFDictionary

this class contains a hash of values

Public Class Methods

new(value={}) click to toggle source

Create new CFDictonary type.

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 221
def initialize(value={})
  @value = value
end

Public Instance Methods

to_binary(bplist) click to toggle source

convert to binary

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 237
def to_binary(bplist)
  bplist.dict_to_binary(self)
end
to_xml(parser) click to toggle source

convert to XML

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 226
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.