Class: Wardite::ExportSection

Inherits:
Section
  • Object
show all
Defined in:
lib/wardite.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



136
137
138
139
140
141
# File 'lib/wardite.rb', line 136

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

  @exports = {}
end

Instance Attribute Details

#exportsObject

: Hash[String, ExportDesc]



134
135
136
# File 'lib/wardite.rb', line 134

def exports
  @exports
end

Instance Method Details

#add_desc(&blk) ⇒ Object



144
145
146
147
148
# File 'lib/wardite.rb', line 144

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