Class: CFPropertyList228::CFInteger
- Defined in:
- lib/nixenvironment/CFPropertyList228/lib/cfpropertylist/rbCFTypes.rb
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 CFPropertyList228::CFType
Instance Method Details
#to_binary(bplist) ⇒ Object
convert to binary
69 70 71 |
# File 'lib/nixenvironment/CFPropertyList228/lib/cfpropertylist/rbCFTypes.rb', line 69 def to_binary(bplist) bplist.num_to_binary(self) end |
#to_xml(parser) ⇒ Object
convert to XML
62 63 64 65 66 |
# File 'lib/nixenvironment/CFPropertyList228/lib/cfpropertylist/rbCFTypes.rb', line 62 def to_xml(parser) n = parser.new_node('integer') n = parser.append_node(n, parser.new_text(@value.to_s)) n end |