Class: SyntaxTree::YARV::SeaOfNodes::Edge
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::SeaOfNodes::Edge
- Defined in:
- lib/syntax_tree/yarv/sea_of_nodes.rb
Overview
The edge of a graph represents either control flow or data flow.
Constant Summary collapse
- TYPES =
%i[data control info].freeze
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(from, to, type, label) ⇒ Edge
constructor
A new instance of Edge.
Constructor Details
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
70 71 72 |
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 70 def from @from end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
73 74 75 |
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 73 def label @label end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
71 72 73 |
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 71 def to @to end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
72 73 74 |
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 72 def type @type end |