Re-implemented Float#to_eet_chunks in C.
[ruby-eet.git] / lib / eet.rb
index 3976032d12bf25852f925d6dca2e25eb61a1beb9..a7586b82f1abef4ffefa088d6558ac97f27fe90d 100644 (file)
@@ -1,5 +1,5 @@
 #--
-# $Id: eet.rb 49 2005-05-30 19:52:36Z tilman $
+# $Id: eet.rb 59 2005-06-08 16:13:15Z tilman $
 #
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
@@ -70,18 +70,6 @@ class Integer # :nodoc:
        end
 end
 
-class Float # :nodoc:
-       def to_eet_chunks(tag, type = nil)
-               fmt = case type
-               when :double: "%32.32f"
-               else "%16.16f"
-               end
-
-               data = fmt % self
-               [Eet::Chunk.new(tag, data + "\0")]
-       end
-end
-
 class String # :nodoc:
        def to_eet_chunks(tag, type = nil)
                [Eet::Chunk.new(tag, self + "\0")]
@@ -120,7 +108,7 @@ class Hash # :nodoc:
 end
 
 module Eet
-       VERSION = "0.1.2"
+       VERSION = "0.1.3"
 
        class ChunkError < EetError; end