Class: CFPropertyList::CFInteger
Overview
This class holds integer/fixnum values
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
55 56 57 |
# File 'lib/rbCFTypes.rb', line 55 def to_binary(bplist) bplist.num_to_binary(self) end |
#to_xml(parser) ⇒ Object
convert to XML
48 49 50 51 52 |
# File 'lib/rbCFTypes.rb', line 48 def to_xml(parser) n = parser.new_node('integer') n = parser.append_node(n, parser.new_text(@value.to_s)) n end |