Class: YaGraph::Node
Instance Method Summary collapse
Methods inherited from Element
Instance Method Details
#colour ⇒ Object
124 |
# File 'lib/yagraphlib.rb', line 124 def colour() "black" end |
#id ⇒ Object
118 |
# File 'lib/yagraphlib.rb', line 118 def id() "" end |
#label ⇒ Object
122 |
# File 'lib/yagraphlib.rb', line 122 def label() id end |
#shape ⇒ Object
123 |
# File 'lib/yagraphlib.rb', line 123 def shape() "oval" end |
#to_graphviz(out) ⇒ Object
119 120 121 |
# File 'lib/yagraphlib.rb', line 119 def to_graphviz(out) out.puts(" #{id} [ color=\"#{colour}\" label=\"#{label}\" shape=\"#{shape}\" ]") end |