Class: GRAPH::Edge
- Inherits:
-
Object
- Object
- GRAPH::Edge
- Defined in:
- lib/sexpir/graph.rb
Instance Attribute Summary collapse
-
#infos ⇒ Object
Returns the value of attribute infos.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sink ⇒ Object
Returns the value of attribute sink.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, sink, infos = {}) ⇒ Edge
constructor
A new instance of Edge.
Constructor Details
#initialize(source, sink, infos = {}) ⇒ Edge
Returns a new instance of Edge.
110 111 112 113 114 |
# File 'lib/sexpir/graph.rb', line 110 def initialize source,sink,infos={} @infos=infos @source=source @sink=sink end |
Instance Attribute Details
#infos ⇒ Object
Returns the value of attribute infos.
109 110 111 |
# File 'lib/sexpir/graph.rb', line 109 def infos @infos end |
#name ⇒ Object
Returns the value of attribute name.
109 110 111 |
# File 'lib/sexpir/graph.rb', line 109 def name @name end |
#sink ⇒ Object
Returns the value of attribute sink.
109 110 111 |
# File 'lib/sexpir/graph.rb', line 109 def sink @sink end |
#source ⇒ Object
Returns the value of attribute source.
109 110 111 |
# File 'lib/sexpir/graph.rb', line 109 def source @source end |