class TrueClass # :nodoc:
def to_eet_chunks(tag, type = nil)
class TrueClass # :nodoc:
def to_eet_chunks(tag, type = nil)
end
end
class FalseClass # :nodoc:
def to_eet_chunks(tag, type = nil)
end
end
class FalseClass # :nodoc:
def to_eet_chunks(tag, type = nil)
class EetError < StandardError; end
class NameError < EetError; end
class PropertyError < EetError; end
class ChunkError < EetError; end
class EetError < StandardError; end
class NameError < EetError; end
class PropertyError < EetError; end
class ChunkError < EetError; end
def initialize(chunk = nil)
super(chunk.nil? ? 0 : 1, chunk)
end
def initialize(chunk = nil)
super(chunk.nil? ? 0 : 1, chunk)
end
# libeet uses a signed 32bit integer to store the
# chunk size, so make sure we don't overflow it
# libeet uses a signed 32bit integer to store the
# chunk size, so make sure we don't overflow it
def Chunk.deserialize(data)
if data.length < 8 || data[0, 4] != "CHnK"
raise(ChunkError, "invalid data")
def Chunk.deserialize(data)
if data.length < 8 || data[0, 4] != "CHnK"
raise(ChunkError, "invalid data")