class CFPropertyList::CFInteger

This class holds integer/fixnum values

Public Instance Methods

to_binary(bplist) click to toggle source

convert to binary

# File lib/cfpropertylist/rbCFTypes.rb, line 110
def to_binary(bplist)
  bplist.num_to_binary(self)
end
to_plain(plist) click to toggle source
# File lib/cfpropertylist/rbCFTypes.rb, line 114
def to_plain(plist)
  @value.to_s
end
to_xml(parser) click to toggle source

convert to XML

# File lib/cfpropertylist/rbCFTypes.rb, line 103
def to_xml(parser)
  n = parser.new_node('integer')
  n = parser.append_node(n, parser.new_text(@value.to_s))
  n
end