Class: Wardite::ExportSection

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

Defined Under Namespace

Classes: ExportDesc

Instance Attribute Summary collapse

Attributes inherited from Section

#code, #name, #size

Instance Method Summary collapse

Constructor Details

#initializeExportSection

: void



201
202
203
204
205
206
# File 'lib/wardite/load.rb', line 201

def initialize #: void
  self.name = "Export"
  self.code = 0x7

  @exports = {}
end

Instance Attribute Details

#exportsObject

: Hash[String, ExportDesc]



199
200
201
# File 'lib/wardite/load.rb', line 199

def exports
  @exports
end

Instance Method Details

#add_desc(&blk) ⇒ Object



209
210
211
212
213
# File 'lib/wardite/load.rb', line 209

def add_desc(&blk)
  desc = ExportDesc.new
  blk.call(desc)
  self.exports[desc.name] = desc
end