Class: CFPropertyList::CFReal
- Defined in:
- lib/cfpropertylist/rbCFTypes.rb
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(parser) ⇒ 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
84 85 86 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 84 def to_binary(bplist) bplist.num_to_binary(self) end |
#to_xml(parser) ⇒ Object
convert to XML
77 78 79 80 81 |
# File 'lib/cfpropertylist/rbCFTypes.rb', line 77 def to_xml(parser) n = parser.new_node('real') n = parser.append_node(n, parser.new_text(@value.to_s)) n end |