Class: RTL::Wire
- Inherits:
-
Object
- Object
- RTL::Wire
- Defined in:
- lib/rtl/circuit.rb
Constant Summary collapse
- @@id =
-1
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#sink ⇒ Object
Returns the value of attribute sink.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, sink) ⇒ Wire
constructor
A new instance of Wire.
Constructor Details
#initialize(source, sink) ⇒ Wire
Returns a new instance of Wire.
129 130 131 132 133 134 |
# File 'lib/rtl/circuit.rb', line 129 def initialize source,sink @name="w_#{@@id+=1}" @source=source @sink=sink @properties={} end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
126 127 128 |
# File 'lib/rtl/circuit.rb', line 126 def name @name end |
#properties ⇒ Object
Returns the value of attribute properties.
128 129 130 |
# File 'lib/rtl/circuit.rb', line 128 def properties @properties end |
#sink ⇒ Object
Returns the value of attribute sink.
127 128 129 |
# File 'lib/rtl/circuit.rb', line 127 def sink @sink end |
#source ⇒ Object
Returns the value of attribute source.
127 128 129 |
# File 'lib/rtl/circuit.rb', line 127 def source @source end |