Class: Wardite::CodeSection

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

Defined Under Namespace

Classes: CodeBody

Instance Attribute Summary collapse

Attributes inherited from Section

#code, #name, #size

Instance Method Summary collapse

Constructor Details

#initializeCodeSection

Returns a new instance of CodeSection.



141
142
143
144
145
146
# File 'lib/wardite/load.rb', line 141

def initialize
  self.name = "Code"
  self.code = 0xa

  @func_codes = []
end

Instance Attribute Details

#func_codesObject



138
139
140
# File 'lib/wardite/load.rb', line 138

def func_codes
  @func_codes
end