Class: TdlSpace::DefGenVar
- Inherits:
-
DefArrayChain
- Object
- DefArrayChain
- TdlSpace::DefGenVar
- Defined in:
- lib/tdl/sdlmodule/sdlmodule_arraychain.rb
Instance Attribute Summary
Attributes inherited from DefArrayChain
Instance Method Summary collapse
Methods inherited from DefArrayChain
#[], #check_name, #check_topmodule_method, #initialize, #method_missing, #to_inp
Constructor Details
This class inherits a constructor from TdlSpace::DefArrayChain
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TdlSpace::DefArrayChain
Instance Method Details
#-(name) ⇒ Object
141 142 143 144 145 146 147 148 149 |
# File 'lib/tdl/sdlmodule/sdlmodule_arraychain.rb', line 141 def -(name) if @chain.length > 1 dimension = @chain[0,@chain.length-1] else dimension = [] end name = to_inp(name) belong_to_module.Def.logic(name: name,dsize: @chain.last || 1,dimension: dimension,type: 'genvar') end |