Class: CFPropertyList::CFBoolean
Overview
This class contains a boolean value
Instance Attribute Summary
Attributes inherited from CFType
Instance Method Summary collapse
-
#to_binary(bplist) ⇒ Object
convert to binary.
-
#to_xml ⇒ Object
convert to XML.
Methods inherited from CFType
Constructor Details
This class inherits a constructor from CFPropertyList::CFType
Instance Method Details
#to_binary(bplist) ⇒ Object
convert to binary
145 146 147 |
# File 'lib/rbCFTypes.rb', line 145 def to_binary(bplist) return bplist.bool_to_binary(@value); end |
#to_xml ⇒ Object
convert to XML
140 141 142 |
# File 'lib/rbCFTypes.rb', line 140 def to_xml return LibXML::XML::Node.new(@value ? 'true' : 'false') end |