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
230 231 232 233 234 235 |
# File 'lib/wardite/load.rb', line 230 def initialize #: void self.name = "Import" self.code = 0x2 @imports = [] end |
Instance Attribute Details
#imports ⇒ Object
: Array
228 229 230 |
# File 'lib/wardite/load.rb', line 228 def imports @imports end |
Instance Method Details
#add_desc(&blk) ⇒ Object
238 239 240 241 242 |
# File 'lib/wardite/load.rb', line 238 def add_desc(&blk) desc = ImportDesc.new blk.call(desc) if blk self.imports << desc end |