--
-$Id: ChangeLog 39 2005-05-18 18:54:31Z tilman $
+$Id: ChangeLog 40 2005-05-18 19:04:52Z tilman $
++
2005-05-18 Tilman Sauerbeck (tilman at code-monkey de)
* lib/eet.rb: Grammar fix
+ * lib/eet.rb: Don't use Array#pack when the result is constant
2005-05-13 Tilman Sauerbeck (tilman at code-monkey de)
* ext/ext.c: Work around RDoc's limitations
#--
-# $Id: eet.rb 39 2005-05-18 18:54:31Z tilman $
+# $Id: eet.rb 40 2005-05-18 19:04:52Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
class TrueClass # :nodoc:
def to_eet_chunks(tag, type = nil)
- [Eet::Chunk.new(tag, [1].pack("c"))]
+ [Eet::Chunk.new(tag, "\1")]
end
end
class FalseClass # :nodoc:
def to_eet_chunks(tag, type = nil)
- [Eet::Chunk.new(tag, [0].pack("c"))]
+ [Eet::Chunk.new(tag, "\0")]
end
end