Class: BlifUtils::Netlist::IO
- Inherits:
-
Object
- Object
- BlifUtils::Netlist::IO
- Defined in:
- lib/blifutils/netlist.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#net ⇒ Object
Returns the value of attribute net.
Instance Method Summary collapse
-
#initialize(name, net) ⇒ IO
constructor
A new instance of IO.
- #to_s ⇒ Object
Constructor Details
#initialize(name, net) ⇒ IO
Returns a new instance of IO.
28 29 30 31 |
# File 'lib/blifutils/netlist.rb', line 28 def initialize (name, net) @name = name @net = net end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/blifutils/netlist.rb', line 25 def name @name end |
#net ⇒ Object
Returns the value of attribute net.
26 27 28 |
# File 'lib/blifutils/netlist.rb', line 26 def net @net end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/blifutils/netlist.rb', line 33 def to_s return "#{if @net.isInput then 'Input' elsif @net.isOutput then 'Output' else 'IO' end} #{@net.name} / #{@name}" end |