Class: SystemRDL::Evaluator::ExplicitComponentInst
- Inherits:
-
Object
- Object
- SystemRDL::Evaluator::ExplicitComponentInst
- Includes:
- Common
- Defined in:
- lib/systemrdl/evaluator/component_insts.rb
Instance Attribute Summary
Attributes included from Common
#component, #parent, #token_range
Instance Method Summary collapse
- #connect(parent, component) ⇒ Object
- #evaluate(instance, **optargs) ⇒ Object
-
#initialize(id, insts, token_range) ⇒ ExplicitComponentInst
constructor
A new instance of ExplicitComponentInst.
Constructor Details
#initialize(id, insts, token_range) ⇒ ExplicitComponentInst
Returns a new instance of ExplicitComponentInst.
90 91 92 93 94 |
# File 'lib/systemrdl/evaluator/component_insts.rb', line 90 def initialize(id, insts, token_range) super(token_range) @id = id @insts = insts end |
Instance Method Details
#connect(parent, component) ⇒ Object
96 97 98 99 |
# File 'lib/systemrdl/evaluator/component_insts.rb', line 96 def connect(parent, component) super @insts.connect(self, component) end |
#evaluate(instance, **optargs) ⇒ Object
101 102 103 |
# File 'lib/systemrdl/evaluator/component_insts.rb', line 101 def evaluate(instance, **optargs) @insts.evaluate(instance, @component, @id, **optargs) end |