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.



117
118
119
120
121
122
# File 'lib/wardite.rb', line 117

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

  @segments = []
end

Instance Attribute Details

#segmentsObject

: Array



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

def segments
  @segments
end