Class: UndecodedLump
Instance Attribute Summary
Attributes inherited from Lump
Instance Method Summary collapse
-
#initialize(name) ⇒ UndecodedLump
constructor
A new instance of UndecodedLump.
- #items ⇒ Object
- #read(bytes) ⇒ Object
- #size ⇒ Object
- #write ⇒ Object
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
#items ⇒ Object
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 |
#size ⇒ Object
392 393 394 |
# File 'lib/ruby-doom.rb', line 392 def size @bytes.size end |
#write ⇒ Object
389 390 391 |
# File 'lib/ruby-doom.rb', line 389 def write @bytes end |