Class: CFPropertyList::CFReal
Overview
This class holds float values
Instance Attribute Summary
Attributes inherited from CFType
Instance Method Summary collapse
-
#to_binary(bplist) ⇒ Object
convert to binary.
-
#to_xml ⇒ 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
71 72 73 |
# File 'lib/rbCFTypes.rb', line 71 def to_binary(bplist) return bplist.num_to_binary(self) end |
#to_xml ⇒ Object
convert to XML
66 67 68 |
# File 'lib/rbCFTypes.rb', line 66 def to_xml return LibXML::XML::Node.new('real') << LibXML::XML::Node.new_text(@value.to_s) end |