Class: YaGraph::Edge
Instance Attribute Summary collapse
-
#finish ⇒ Object
readonly
Returns the value of attribute finish.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
Instance Method Summary collapse
Methods inherited from Element
Instance Attribute Details
#finish ⇒ Object (readonly)
Returns the value of attribute finish.
128 129 130 |
# File 'lib/yagraphlib.rb', line 128 def finish @finish end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
128 129 130 |
# File 'lib/yagraphlib.rb', line 128 def start @start end |
Instance Method Details
#colour ⇒ Object
133 |
# File 'lib/yagraphlib.rb', line 133 def colour() "black" end |
#label ⇒ Object
132 |
# File 'lib/yagraphlib.rb', line 132 def label() "" end |
#to_graphviz(out) ⇒ Object
129 130 131 |
# File 'lib/yagraphlib.rb', line 129 def to_graphviz(out) out.puts(" #{start.id} -> #{finish.id} [ color=\"#{colour}\" label=\"#{label}\"]") end |