Class: Wardite::ExportSection
Defined Under Namespace
Classes: ExportDesc
Instance Attribute Summary collapse
-
#exports ⇒ Object
: Hash[String, ExportDesc].
Attributes inherited from Section
Instance Method Summary collapse
- #add_desc(&blk) ⇒ Object
-
#initialize ⇒ ExportSection
constructor
: void.
Constructor Details
#initialize ⇒ ExportSection
: void
202 203 204 205 206 207 |
# File 'lib/wardite/load.rb', line 202 def initialize #: void self.name = "Export" self.code = 0x7 @exports = {} end |
Instance Attribute Details
#exports ⇒ Object
: Hash[String, ExportDesc]
200 201 202 |
# File 'lib/wardite/load.rb', line 200 def exports @exports end |
Instance Method Details
#add_desc(&blk) ⇒ Object
210 211 212 213 214 |
# File 'lib/wardite/load.rb', line 210 def add_desc(&blk) desc = ExportDesc.new blk.call(desc) self.exports[desc.name] = desc end |