Class/Module Index [+]

Quicksearch

Facter::Util::CFPropertyList::CFString

This class holds string values, both, UTF-8 and UTF-16BE It will convert the value to UTF-16BE if necessary (i.e. if non-ascii char contained)

Public Instance Methods

to_binary(bplist) click to toggle source

convert to binary

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 39
def to_binary(bplist)
  bplist.string_to_binary(@value);
end
to_xml(parser) click to toggle source

convert to XML

# File lib/facter/util/cfpropertylist/lib/rbCFTypes.rb, line 32
def to_xml(parser)
  n = parser.new_node('string')
  n = parser.append_node(n, parser.new_text(@value)) unless @value.nil?
  n
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.