Module: Origen::Netlist::Connectable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Ports::Port, Ports::Section, Registers::BitCollection
- Defined in:
- lib/origen/netlist/connectable.rb
Instance Method Summary collapse
- #connect_to(node = nil, options = {}, &block) ⇒ Object (also: #connect)
Instance Method Details
#connect_to(node = nil, options = {}, &block) ⇒ Object Also known as: connect
10 11 12 13 14 |
# File 'lib/origen/netlist/connectable.rb', line 10 def connect_to(node = nil, = {}, &block) node, = nil, node if node.is_a?(Hash) node = node.path if node.respond_to?(:path) netlist.connect(path, node, &block) end |