Class: Header
- Inherits:
-
Object
- Object
- Header
- Defined in:
- lib/ruby-doom.rb
Constant Summary collapse
- BYTES_EACH =
12
Instance Attribute Summary collapse
-
#directory_offset ⇒ Object
Returns the value of attribute directory_offset.
-
#lump_count ⇒ Object
Returns the value of attribute lump_count.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil) ⇒ Header
constructor
A new instance of Header.
- #read(array) ⇒ Object
- #write ⇒ Object
Constructor Details
#initialize(type = nil) ⇒ Header
Returns a new instance of Header.
652 653 654 |
# File 'lib/ruby-doom.rb', line 652 def initialize(type=nil) @type = type end |
Instance Attribute Details
#directory_offset ⇒ Object
Returns the value of attribute directory_offset.
651 652 653 |
# File 'lib/ruby-doom.rb', line 651 def directory_offset @directory_offset end |
#lump_count ⇒ Object
Returns the value of attribute lump_count.
651 652 653 |
# File 'lib/ruby-doom.rb', line 651 def lump_count @lump_count end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
650 651 652 |
# File 'lib/ruby-doom.rb', line 650 def type @type end |