Class: Wardite::DataSection

Inherits:
Section
  • Object
show all
Defined in:
lib/wardite.rb

Defined Under Namespace

Classes: Segment

Instance Attribute Summary collapse

Attributes inherited from Section

#code, #name, #size

Instance Method Summary collapse

Constructor Details

#initializeDataSection

Returns a new instance of DataSection.



104
105
106
107
108
109
# File 'lib/wardite.rb', line 104

def initialize
  self.name = "Data"
  self.code = 0xb

  @segments = []
end

Instance Attribute Details

#segmentsObject

: Array



101
102
103
# File 'lib/wardite.rb', line 101

def segments
  @segments
end