Class: Graphviz::Diagram::ClassDiagram::Link
- Inherits:
-
Object
- Object
- Graphviz::Diagram::ClassDiagram::Link
- Defined in:
- lib/graphviz/diagram/class_diagram.rb
Overview
Relationship between entities
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
From and to are entities links each other.
-
#from ⇒ Object
From and to are entities links each other.
-
#to ⇒ Object
From and to are entities links each other.
Instance Method Summary collapse
- #default_attrs ⇒ Object
-
#initialize(from, to, attributes = {}) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(from, to, attributes = {}) ⇒ Link
Returns a new instance of Link.
125 126 127 128 |
# File 'lib/graphviz/diagram/class_diagram.rb', line 125 def initialize(from, to, attributes = {}) attrs = default_attrs.merge(attributes) @from, @to, @attributes = from, to, attrs end |
Instance Attribute Details
#attributes ⇒ Object
From and to are entities links each other
123 124 125 |
# File 'lib/graphviz/diagram/class_diagram.rb', line 123 def attributes @attributes end |
#from ⇒ Object
From and to are entities links each other
123 124 125 |
# File 'lib/graphviz/diagram/class_diagram.rb', line 123 def from @from end |
#to ⇒ Object
From and to are entities links each other
123 124 125 |
# File 'lib/graphviz/diagram/class_diagram.rb', line 123 def to @to end |
Instance Method Details
#default_attrs ⇒ Object
130 131 132 |
# File 'lib/graphviz/diagram/class_diagram.rb', line 130 def default_attrs {} end |