class Graph::Thingy
You know… THINGY!
Has a pointer back to its graph parent and attributes.
Public Instance Methods
attributes?()
click to toggle source
Does this thing have attributes?
# File lib/graph.rb, line 555 def attributes? not self.attributes.empty? end
label(name)
click to toggle source
Shortcut method to set the label attribute.
# File lib/graph.rb, line 546 def label name attributes.reject! { |s| s =~ /^label =/ } attributes << "label = #{Graph.escape_label name}" self end