Class: UndecodedLump

Inherits:
Lump
  • Object
show all
Defined in:
lib/ruby-doom.rb

Instance Attribute Summary

Attributes inherited from Lump

#name

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UndecodedLump

Returns a new instance of UndecodedLump.



382
383
384
385
# File 'lib/ruby-doom.rb', line 382

def initialize(name)
  super(name)
  @bytes = []
end

Instance Method Details

#itemsObject



395
396
397
# File 'lib/ruby-doom.rb', line 395

def items
  []
end

#read(bytes) ⇒ Object



386
387
388
# File 'lib/ruby-doom.rb', line 386

def read(bytes)
  @bytes = bytes
end

#sizeObject



392
393
394
# File 'lib/ruby-doom.rb', line 392

def size
  @bytes.size
end

#writeObject



389
390
391
# File 'lib/ruby-doom.rb', line 389

def write
  @bytes
end