X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=lib%2Feet.rb;h=5a2d06a2aa8788bf846fd095418299e174961f93;hb=e3da105a58f1a4f41d30907b86f0cf3626c7b700;hp=a7586b82f1abef4ffefa088d6558ac97f27fe90d;hpb=97c8bab3bc9e5d3665d4f6ad528ad5a140d808a3;p=ruby-eet.git diff --git a/lib/eet.rb b/lib/eet.rb index a7586b8..5a2d06a 100644 --- a/lib/eet.rb +++ b/lib/eet.rb @@ -1,7 +1,5 @@ #-- -# $Id: eet.rb 59 2005-06-08 16:13:15Z tilman $ -# -# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) +# Copyright (c) 2005-2007 Tilman Sauerbeck (tilman at code-monkey de) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -56,20 +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 String # :nodoc: def to_eet_chunks(tag, type = nil) [Eet::Chunk.new(tag, self + "\0")] @@ -108,7 +92,7 @@ class Hash # :nodoc: end module Eet - VERSION = "0.1.3" + VERSION = "0.1.4" class ChunkError < EetError; end