Class/Module Index [+]

Quicksearch

Facter::Util::CFPropertyList::CFArray

This class contains an array of values

Public Class Methods

new(val=[]) click to toggle source

create a new array CFType

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 199
def initialize(val=[])
  @value = val
end

Public Instance Methods

to_binary(bplist) click to toggle source

convert to binary

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

convert to XML

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 204
def to_xml(parser)
  n = parser.new_node('array')
  @value.each do |v|
    n = parser.append_node(n, v.to_xml(parser))
  end
  n
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.