Class: CFPropertyList::CFInteger

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

Overview

This class holds integer/fixnum values

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



62
63
64
# File 'lib/rbCFTypes.rb', line 62

def to_binary(bplist)
  bplist.num_to_binary(self)
end

#to_xml(parser) ⇒ Object

convert to XML



55
56
57
58
59
# File 'lib/rbCFTypes.rb', line 55

def to_xml(parser)
  n = parser.new_node('integer')
  n = parser.append_node(n, parser.new_text(@value.to_s))
  n
end