Class: CFPropertyList::CFReal

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

Overview

This class holds float 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



77
78
79
# File 'lib/rbCFTypes.rb', line 77

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

#to_xml(parser) ⇒ Object

convert to XML



70
71
72
73
74
# File 'lib/rbCFTypes.rb', line 70

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