class CFPropertyList::CFReal

This class holds float values

Public Instance Methods

to_binary(bplist) click to toggle source

convert to binary

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

convert to XML

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