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_plain(plist) ⇒ Object
-
#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
218 219 220 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 218 def to_binary(bplist) bplist.bool_to_binary(@value); end |
#to_plain(plist) ⇒ Object
222 223 224 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 222 def to_plain(plist) @value ? "true" : "false" end |
#to_xml(parser) ⇒ Object
convert to XML
213 214 215 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 213 def to_xml(parser) parser.new_node(@value ? 'true' : 'false') end |