class CFPropertyList::CFBoolean

This class contains a boolean value

Public Instance Methods

to_binary(bplist) click to toggle source

convert to binary

# File lib/cfpropertylist/rbCFTypes.rb, line 217
def to_binary(bplist)
  bplist.bool_to_binary(@value);
end
to_plain(plist) click to toggle source
# File lib/cfpropertylist/rbCFTypes.rb, line 221
def to_plain(plist)
  @value ? "true" : "false"
end
to_xml(parser) click to toggle source

convert to XML

# File lib/cfpropertylist/rbCFTypes.rb, line 212
def to_xml(parser)
  parser.new_node(@value ? 'true' : 'false')
end