Class: CFPropertyList::CFBoolean
- Defined in:
- lib/cfpropertylist/rbCFTypes.rb
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(parser) ⇒ 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
164 165 166 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 164 def to_binary(bplist) bplist.bool_to_binary(@value); end |
#to_xml(parser) ⇒ Object
convert to XML
159 160 161 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 159 def to_xml(parser) parser.new_node(@value ? 'true' : 'false') end |