Removed RCS-style IDs.
[ruby-eet.git] / lib / eet.rb
index 3976032d12bf25852f925d6dca2e25eb61a1beb9..539dc364cd4179bbc2d2090de92d7289200a15c7 100644 (file)
@@ -1,6 +1,4 @@
 #--
-# $Id: eet.rb 49 2005-05-30 19:52:36Z tilman $
-#
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
 # Permission is hereby granted, free of charge, to any person obtaining
@@ -56,32 +54,6 @@ class Object
        end
 end
 
-class Integer # :nodoc:
-       def to_eet_chunks(tag, type = nil)
-               fmt = case type
-               when :char: "c"
-               when :short: "v"
-               when :long_long: "q"
-               else "V"
-               end
-
-               data = [self].pack(fmt)
-               [Eet::Chunk.new(tag, data)]
-       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,10 +92,19 @@ class Hash # :nodoc:
 end
 
 module Eet
-       VERSION = "0.1.2"
+       VERSION = "0.1.3"
 
        class ChunkError < EetError; end
 
+       class File
+               def list(glob = "*")
+                       warn "Eet::File#list is deprecated, " +
+                            "use Eet::File#entries or Eet::File#[] instead"
+
+                       self[glob]
+               end
+       end
+
        class Stream # :nodoc:
                def initialize(chunk = nil)
                        super(chunk.nil? ? 0 : 1, chunk)