Class: CFPropertyList::CFBoolean

Inherits:
CFType
  • Object
show all
Defined in:
lib/rbCFTypes.rb

Overview

This class contains a boolean value

Instance Attribute Summary

Attributes inherited from CFType

#value

Instance Method Summary collapse

Methods inherited from CFType

#initialize

Constructor Details

This class inherits a constructor from CFPropertyList::CFType

Instance Method Details

#to_binary(bplist) ⇒ Object

convert to binary



157
158
159
# File 'lib/rbCFTypes.rb', line 157

def to_binary(bplist)
  bplist.bool_to_binary(@value);
end

#to_xml(parser) ⇒ Object

convert to XML



152
153
154
# File 'lib/rbCFTypes.rb', line 152

def to_xml(parser)
  parser.new_node(@value ? 'true' : 'false')
end