Class: Wardite::ImportSection
Defined Under Namespace
Classes: ImportDesc
Instance Attribute Summary collapse
Attributes inherited from Section
Instance Method Summary collapse
- #add_desc(&blk) ⇒ Object
-
#initialize ⇒ ImportSection
constructor
: void.
Constructor Details
#initialize ⇒ ImportSection
: void
164 165 166 167 168 169 |
# File 'lib/wardite.rb', line 164 def initialize #: void self.name = "Import" self.code = 0x2 @imports = [] end |
Instance Attribute Details
Instance Method Details
#add_desc(&blk) ⇒ Object
172 173 174 175 176 |
# File 'lib/wardite.rb', line 172 def add_desc(&blk) desc = ImportDesc.new blk.call(desc) if blk self.imports << desc end |