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.



113
114
115
116
117
118
# File 'lib/wardite.rb', line 113

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

  @segments = []
end

Instance Attribute Details

#segmentsObject

: Array



110
111
112
# File 'lib/wardite.rb', line 110

def segments
  @segments
end